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.boolean
Move to the first child node and returntrue
upon success.boolean
Move to the parent node and returntrue
upon success.boolean
Move to the next sibling node and returntrue
upon success.long
size()
Return the number of points below the current node.void
visitDocIDs
(PointValues.IntersectVisitor visitor) Visit all the docs below the current node.void
Visit 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 returntrue
upon success. Returnsfalse
for leaf nodes andtrue
otherwise.- Throws:
IOException
-
moveToSibling
Move to the next sibling node and returntrue
upon success. Returnsfalse
if the current node has no more siblings.- Throws:
IOException
-
moveToParent
Move to the parent node and returntrue
upon success. Returnsfalse
for the root node andtrue
otherwise.- 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
-