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.DocMapprivate final PointValues.PointTreeprivate 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.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.
-
Field Details
-
indexTree
-
docMap
-
sortingIntersectVisitor
-
-
Constructor Details
-
SortingPointTree
SortingPointTree(PointValues.PointTree indexTree, Sorter.DocMap docMap)
-
-
Method Details
-
clone
Description copied from interface:PointValues.PointTreeClone, the current node becomes the root of the new tree.- Specified by:
clonein interfacePointValues.PointTree- Overrides:
clonein classObject
-
moveToChild
Description copied from interface:PointValues.PointTreeMove to the first child node and returntrueupon success. Returnsfalsefor leaf nodes andtrueotherwise.- Specified by:
moveToChildin interfacePointValues.PointTree- Throws:
IOException
-
moveToSibling
Description copied from interface:PointValues.PointTreeMove to the next sibling node and returntrueupon success. Returnsfalseif the current node has no more siblings.- Specified by:
moveToSiblingin interfacePointValues.PointTree- Throws:
IOException
-
moveToParent
Description copied from interface:PointValues.PointTreeMove to the parent node and returntrueupon success. Returnsfalsefor the root node andtrueotherwise.- Specified by:
moveToParentin interfacePointValues.PointTree- Throws:
IOException
-
getMinPackedValue
public byte[] getMinPackedValue()Description copied from interface:PointValues.PointTreeReturn the minimum packed value of the current node.- Specified by:
getMinPackedValuein interfacePointValues.PointTree
-
getMaxPackedValue
public byte[] getMaxPackedValue()Description copied from interface:PointValues.PointTreeReturn the maximum packed value of the current node.- Specified by:
getMaxPackedValuein interfacePointValues.PointTree
-
size
public long size()Description copied from interface:PointValues.PointTreeReturn the number of points below the current node.- Specified by:
sizein interfacePointValues.PointTree
-
visitDocIDs
Description copied from interface:PointValues.PointTreeVisit all the docs below the current node.- Specified by:
visitDocIDsin interfacePointValues.PointTree- Throws:
IOException
-
visitDocValues
Description copied from interface:PointValues.PointTreeVisit all the docs and values below the current node.- Specified by:
visitDocValuesin interfacePointValues.PointTree- Throws:
IOException
-