private static class ExitableDirectoryReader.ExitablePointValues extends PointValues
PointValues.IntersectVisitor, PointValues.Relation| Modifier and Type | Field and Description |
|---|---|
private PointValues |
in |
private QueryTimeout |
queryTimeout |
MAX_DIMENSIONS, MAX_NUM_BYTES| Modifier | Constructor and Description |
|---|---|
private |
ExitablePointValues(PointValues in,
QueryTimeout queryTimeout) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkAndThrow()
Throws
ExitableDirectoryReader.ExitingReaderException if QueryTimeout.shouldExit() returns true,
or if Thread.interrupted() returns true. |
long |
estimatePointCount(PointValues.IntersectVisitor visitor)
Estimate the number of points that would be visited by
PointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. |
int |
getBytesPerDimension()
Returns the number of bytes per dimension
|
int |
getDocCount()
Returns the total number of documents that have indexed at least one point.
|
byte[] |
getMaxPackedValue()
Returns maximum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
byte[] |
getMinPackedValue()
Returns minimum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
int |
getNumDataDimensions()
Returns how many data dimensions are represented in the values
|
int |
getNumIndexDimensions()
Returns how many dimensions are used for the index
|
void |
intersect(PointValues.IntersectVisitor visitor)
Finds all documents and points matching the provided visitor.
|
long |
size()
Returns the total number of indexed points across all documents.
|
estimateDocCount, getDocCount, getMaxPackedValue, getMinPackedValue, sizeprivate final PointValues in
private final QueryTimeout queryTimeout
private ExitablePointValues(PointValues in, QueryTimeout queryTimeout)
private void checkAndThrow()
ExitableDirectoryReader.ExitingReaderException if QueryTimeout.shouldExit() returns true,
or if Thread.interrupted() returns true.public void intersect(PointValues.IntersectVisitor visitor) throws java.io.IOException
PointValuesintersect in class PointValuesjava.io.IOExceptionpublic long estimatePointCount(PointValues.IntersectVisitor visitor)
PointValuesPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. This should run many times faster
than PointValues.intersect(IntersectVisitor).estimatePointCount in class PointValuespublic byte[] getMinPackedValue()
throws java.io.IOException
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMinPackedValue in class PointValuesjava.io.IOExceptionpublic byte[] getMaxPackedValue()
throws java.io.IOException
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMaxPackedValue in class PointValuesjava.io.IOExceptionpublic int getNumDataDimensions()
throws java.io.IOException
PointValuesgetNumDataDimensions in class PointValuesjava.io.IOExceptionpublic int getNumIndexDimensions()
throws java.io.IOException
PointValuesgetNumIndexDimensions in class PointValuesjava.io.IOExceptionpublic int getBytesPerDimension()
throws java.io.IOException
PointValuesgetBytesPerDimension in class PointValuesjava.io.IOExceptionpublic long size()
PointValuessize in class PointValuespublic int getDocCount()
PointValuesgetDocCount in class PointValues