Interface BlockBalancedTreeReader.IntersectVisitor
- Enclosing class:
- BlockBalancedTreeReader
public static interface BlockBalancedTreeReader.IntersectVisitor
We recurse the balanced tree, using a provided instance of this to guide the recursion.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.PointValues.Relationcompare(byte[] minPackedValue, byte[] maxPackedValue) Called for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.booleancontains(byte[] packedValue) Called for all values in a leaf cell that crosses the query.
-
Method Details
-
contains
boolean contains(byte[] packedValue) Called for all values in a leaf cell that crosses the query. The consumer should scrutinize the packedValue to decide whether to accept it. Values are visited in increasing order, and in the case of ties, in increasing order by segment row ID. -
compare
org.apache.lucene.index.PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue) Called for non-leaf cells to test how the cell relates to the query, to determine how to further recurse down the tree.
-