Module org.apache.lucene.core
Package org.apache.lucene.index
Class SortingCodecReader.SortingPointTree
java.lang.Object
org.apache.lucene.index.SortingCodecReader.SortingPointTree
- All Implemented Interfaces:
Cloneable
,PointValues.PointTree
- Enclosing class:
- SortingCodecReader
private static class SortingCodecReader.SortingPointTree
extends Object
implements PointValues.PointTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Sorter.DocMap
private final PointValues.PointTree
private final SortingCodecReader.SortingIntersectVisitor
-
Constructor Summary
Constructors -
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.
-
Field Details
-
indexTree
-
docMap
-
sortingIntersectVisitor
-
-
Constructor Details
-
SortingPointTree
SortingPointTree(PointValues.PointTree indexTree, Sorter.DocMap docMap)
-
-
Method Details
-
clone
Description copied from interface:PointValues.PointTree
Clone, the current node becomes the root of the new tree.- Specified by:
clone
in interfacePointValues.PointTree
- Overrides:
clone
in classObject
-
moveToChild
Description copied from interface:PointValues.PointTree
Move to the first child node and returntrue
upon success. Returnsfalse
for leaf nodes andtrue
otherwise.- Specified by:
moveToChild
in interfacePointValues.PointTree
- Throws:
IOException
-
moveToSibling
Description copied from interface:PointValues.PointTree
Move to the next sibling node and returntrue
upon success. Returnsfalse
if the current node has no more siblings.- Specified by:
moveToSibling
in interfacePointValues.PointTree
- Throws:
IOException
-
moveToParent
Description copied from interface:PointValues.PointTree
Move to the parent node and returntrue
upon success. Returnsfalse
for the root node andtrue
otherwise.- Specified by:
moveToParent
in interfacePointValues.PointTree
- Throws:
IOException
-
getMinPackedValue
public byte[] getMinPackedValue()Description copied from interface:PointValues.PointTree
Return the minimum packed value of the current node.- Specified by:
getMinPackedValue
in interfacePointValues.PointTree
-
getMaxPackedValue
public byte[] getMaxPackedValue()Description copied from interface:PointValues.PointTree
Return the maximum packed value of the current node.- Specified by:
getMaxPackedValue
in interfacePointValues.PointTree
-
size
public long size()Description copied from interface:PointValues.PointTree
Return the number of points below the current node.- Specified by:
size
in interfacePointValues.PointTree
-
visitDocIDs
Description copied from interface:PointValues.PointTree
Visit all the docs below the current node.- Specified by:
visitDocIDs
in interfacePointValues.PointTree
- Throws:
IOException
-
visitDocValues
Description copied from interface:PointValues.PointTree
Visit all the docs and values below the current node.- Specified by:
visitDocValues
in interfacePointValues.PointTree
- Throws:
IOException
-