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.DocMapdocMapprivate PointValues.PointTreeindexTreeprivate SortingCodecReader.SortingIntersectVisitorsortingIntersectVisitor
-
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.PointTreeclone()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.booleanmoveToChild()Move to the first child node and returntrueupon success.booleanmoveToParent()Move to the parent node and returntrueupon success.booleanmoveToSibling()Move 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.voidvisitDocValues(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.PointTreeClone, the current node becomes the root of the new tree.- Specified by:
clonein interfacePointValues.PointTree- Overrides:
clonein classjava.lang.Object
-
moveToChild
public boolean moveToChild() throws java.io.IOExceptionDescription copied from interface:PointValues.PointTreeMove to the first child node and returntrueupon success. Returnsfalsefor leaf nodes andtrueotherwise.- Specified by:
moveToChildin interfacePointValues.PointTree- Throws:
java.io.IOException
-
moveToSibling
public boolean moveToSibling() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
moveToParent
public boolean moveToParent() throws java.io.IOExceptionDescription copied from interface:PointValues.PointTreeMove to the parent node and returntrueupon success. Returnsfalsefor the root node andtrueotherwise.- Specified by:
moveToParentin interfacePointValues.PointTree- Throws:
java.io.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
public void visitDocIDs(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTreeVisit all the docs below the current node.- Specified by:
visitDocIDsin interfacePointValues.PointTree- Throws:
java.io.IOException
-
visitDocValues
public void visitDocValues(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from interface:PointValues.PointTreeVisit all the docs and values below the current node.- Specified by:
visitDocValuesin interfacePointValues.PointTree- Throws:
java.io.IOException
-
-