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:
java.lang.Cloneable
,PointValues.PointTree
- Enclosing class:
- SortingCodecReader
private static class SortingCodecReader.SortingPointTree extends java.lang.Object implements PointValues.PointTree
-
-
Field Summary
Fields Modifier and Type Field Description private Sorter.DocMap
docMap
private PointValues.PointTree
indexTree
private SortingCodecReader.SortingIntersectVisitor
sortingIntersectVisitor
-
Constructor Summary
Constructors Constructor Description SortingPointTree(PointValues.PointTree indexTree, Sorter.DocMap docMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointValues.PointTree
clone()
Clone, the current node becomes the root of the new tree.byte[]
getMaxPackedValue()
Return the maximum packed value of the current node.byte[]
getMinPackedValue()
Return the minimum packed value of the current node.boolean
moveToChild()
Move to the first child node and returntrue
upon success.boolean
moveToParent()
Move to the parent node and returntrue
upon success.boolean
moveToSibling()
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
visitDocValues(PointValues.IntersectVisitor visitor)
Visit all the docs and values below the current node.
-
-
-
Field Detail
-
indexTree
private final PointValues.PointTree indexTree
-
docMap
private final Sorter.DocMap docMap
-
sortingIntersectVisitor
private final SortingCodecReader.SortingIntersectVisitor sortingIntersectVisitor
-
-
Constructor Detail
-
SortingPointTree
SortingPointTree(PointValues.PointTree indexTree, Sorter.DocMap docMap)
-
-
Method Detail
-
clone
public PointValues.PointTree 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 classjava.lang.Object
-
moveToChild
public boolean moveToChild() throws java.io.IOException
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:
java.io.IOException
-
moveToSibling
public boolean moveToSibling() throws java.io.IOException
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:
java.io.IOException
-
moveToParent
public boolean moveToParent() throws java.io.IOException
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:
java.io.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
public void visitDocIDs(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTree
Visit all the docs below the current node.- Specified by:
visitDocIDs
in interfacePointValues.PointTree
- Throws:
java.io.IOException
-
visitDocValues
public void visitDocValues(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTree
Visit all the docs and values below the current node.- Specified by:
visitDocValues
in interfacePointValues.PointTree
- Throws:
java.io.IOException
-
-