Module org.apache.lucene.core
Package org.apache.lucene.index
Class ExitableDirectoryReader.ExitablePointTree
java.lang.Object
org.apache.lucene.index.ExitableDirectoryReader.ExitablePointTree
- All Implemented Interfaces:
Cloneable,PointValues.PointTree
- Enclosing class:
ExitableDirectoryReader
private static class ExitableDirectoryReader.ExitablePointTree
extends Object
implements PointValues.PointTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final ExitableDirectoryReader.ExitableIntersectVisitorprivate final PointValues.PointTreeprivate static final intprivate final PointValuesprivate final QueryTimeout -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExitablePointTree(PointValues pointValues, PointValues.PointTree in, QueryTimeout queryTimeout) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true.clone()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
-
MAX_CALLS_BEFORE_QUERY_TIMEOUT_CHECK
private static final int MAX_CALLS_BEFORE_QUERY_TIMEOUT_CHECK- See Also:
-
pointValues
-
in
-
exitableIntersectVisitor
-
queryTimeout
-
calls
private int calls
-
-
Constructor Details
-
ExitablePointTree
private ExitablePointTree(PointValues pointValues, PointValues.PointTree in, QueryTimeout queryTimeout)
-
-
Method Details
-
checkAndThrowWithSampling
private void checkAndThrowWithSampling()ThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true. -
checkAndThrow
private void checkAndThrow() -
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
-