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 int
private final ExitableDirectoryReader.ExitableIntersectVisitor
private final PointValues.PointTree
private static final int
private final PointValues
private final QueryTimeout
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExitablePointTree
(PointValues pointValues, PointValues.PointTree in, QueryTimeout queryTimeout) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
ThrowsExitableDirectoryReader.ExitingReaderException
ifQueryTimeout.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.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
-
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.ExitingReaderException
ifQueryTimeout.shouldExit()
returns true, or ifThread.interrupted()
returns true. -
checkAndThrow
private void checkAndThrow() -
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
-