Package org.apache.lucene.index
Class ExitableDirectoryReader.ExitablePointTree
- java.lang.Object
-
- org.apache.lucene.index.ExitableDirectoryReader.ExitablePointTree
-
- All Implemented Interfaces:
java.lang.Cloneable
,PointValues.PointTree
- Enclosing class:
- ExitableDirectoryReader
private static class ExitableDirectoryReader.ExitablePointTree extends java.lang.Object implements PointValues.PointTree
-
-
Field Summary
Fields Modifier and Type Field Description private int
calls
private ExitableDirectoryReader.ExitableIntersectVisitor
exitableIntersectVisitor
private PointValues.PointTree
in
private static int
MAX_CALLS_BEFORE_QUERY_TIMEOUT_CHECK
private PointValues
pointValues
private QueryTimeout
queryTimeout
-
Constructor Summary
Constructors Modifier Constructor Description private
ExitablePointTree(PointValues pointValues, PointValues.PointTree in, QueryTimeout queryTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkAndThrow()
private void
checkAndThrowWithSampling()
ThrowsExitableDirectoryReader.ExitingReaderException
ifQueryTimeout.shouldExit()
returns true, or ifThread.interrupted()
returns true.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
-
MAX_CALLS_BEFORE_QUERY_TIMEOUT_CHECK
private static final int MAX_CALLS_BEFORE_QUERY_TIMEOUT_CHECK
- See Also:
- Constant Field Values
-
pointValues
private final PointValues pointValues
-
in
private final PointValues.PointTree in
-
exitableIntersectVisitor
private final ExitableDirectoryReader.ExitableIntersectVisitor exitableIntersectVisitor
-
queryTimeout
private final QueryTimeout queryTimeout
-
calls
private int calls
-
-
Constructor Detail
-
ExitablePointTree
private ExitablePointTree(PointValues pointValues, PointValues.PointTree in, QueryTimeout queryTimeout)
-
-
Method Detail
-
checkAndThrowWithSampling
private void checkAndThrowWithSampling()
ThrowsExitableDirectoryReader.ExitingReaderException
ifQueryTimeout.shouldExit()
returns true, or ifThread.interrupted()
returns true.
-
checkAndThrow
private void checkAndThrow()
-
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
-
-