MCPcopy Create free account
hub / github.com/BaseXdb/basex / costs

Method costs

basex-core/src/main/java/org/basex/data/Data.java:193–195  ·  view source on GitHub ↗

Returns a cost estimation for searching the specified token. Smaller values are better, a value of zero indicates that no results will be returned. @param search index search definition @return cost estimation, or null if index access is not possible

(final IndexSearch search)

Source from the content-addressed store, hash-verified

191 * @return cost estimation, or {@code null} if index access is not possible
192 */
193 public final IndexCosts costs(final IndexSearch search) {
194 return index(search.type()).costs(search);
195 }
196
197 /**
198 * Returns info on the specified index structure.

Callers 1

optMethod · 0.95

Calls 3

indexMethod · 0.95
costsMethod · 0.65
typeMethod · 0.65

Tested by

no test coverage detected