Package org.apache.lucene.index
Interface PointValues.PointTree
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
MutablePointTree
- Enclosing class:
PointValues
Basic operations to read the KD-tree.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Clone, the current node becomes the root of the new tree.byte[]Return the maximum packed value of the current node.byte[]Return the minimum packed value of the current node.booleanMove to the first child node and returntrueupon success.booleanMove to the parent node and returntrueupon success.booleanMove to the next sibling node and returntrueupon success.longsize()Return the number of points below the current node.voidvisitDocIDs(PointValues.IntersectVisitor visitor) Visit all the docs below the current node.voidVisit all the docs and values below the current node.
-
Method Details
-
clone
PointValues.PointTree clone()Clone, the current node becomes the root of the new tree. -
moveToChild
Move to the first child node and returntrueupon success. Returnsfalsefor leaf nodes andtrueotherwise.- Throws:
IOException
-
moveToSibling
Move to the next sibling node and returntrueupon success. Returnsfalseif the current node has no more siblings.- Throws:
IOException
-
moveToParent
Move to the parent node and returntrueupon success. Returnsfalsefor the root node andtrueotherwise.- Throws:
IOException
-
getMinPackedValue
byte[] getMinPackedValue()Return the minimum packed value of the current node. -
getMaxPackedValue
byte[] getMaxPackedValue()Return the maximum packed value of the current node. -
size
long size()Return the number of points below the current node. -
visitDocIDs
Visit all the docs below the current node.- Throws:
IOException
-
visitDocValues
Visit all the docs and values below the current node.- Throws:
IOException
-