Package org.apache.lucene.index
Class ExitableDirectoryReader.ExitablePointValues
- java.lang.Object
-
- org.apache.lucene.index.PointValues
-
- org.apache.lucene.index.ExitableDirectoryReader.ExitablePointValues
-
- Enclosing class:
- ExitableDirectoryReader
private static class ExitableDirectoryReader.ExitablePointValues extends PointValues
Wrapper class for another PointValues implementation that is used by ExitableFields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.index.PointValues
PointValues.IntersectVisitor, PointValues.Relation
-
-
Field Summary
Fields Modifier and Type Field Description private PointValuesinprivate QueryTimeoutqueryTimeout-
Fields inherited from class org.apache.lucene.index.PointValues
MAX_DIMENSIONS, MAX_INDEX_DIMENSIONS, MAX_NUM_BYTES
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExitablePointValues(PointValues in, QueryTimeout queryTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckAndThrow()ThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true.longestimatePointCount(PointValues.IntersectVisitor visitor)Estimate the number of points that would be visited byPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)with the givenPointValues.IntersectVisitor.intgetBytesPerDimension()Returns the number of bytes per dimensionintgetDocCount()Returns the total number of documents that have indexed at least one point.byte[]getMaxPackedValue()Returns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0byte[]getMinPackedValue()Returns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0intgetNumDimensions()Returns how many dimensions are represented in the valuesintgetNumIndexDimensions()Returns how many dimensions are used for the indexvoidintersect(PointValues.IntersectVisitor visitor)Finds all documents and points matching the provided visitor.longsize()Returns the total number of indexed points across all documents.-
Methods inherited from class org.apache.lucene.index.PointValues
estimateDocCount, getDocCount, getMaxPackedValue, getMinPackedValue, size
-
-
-
-
Field Detail
-
in
private final PointValues in
-
queryTimeout
private final QueryTimeout queryTimeout
-
-
Constructor Detail
-
ExitablePointValues
private ExitablePointValues(PointValues in, QueryTimeout queryTimeout)
-
-
Method Detail
-
checkAndThrow
private void checkAndThrow()
ThrowsExitableDirectoryReader.ExitingReaderExceptionifQueryTimeout.shouldExit()returns true, or ifThread.interrupted()returns true.
-
intersect
public void intersect(PointValues.IntersectVisitor visitor) throws java.io.IOException
Description copied from class:PointValuesFinds all documents and points matching the provided visitor. This method does not enforce live documents, so it's up to the caller to test whether each document is deleted, if necessary.- Specified by:
intersectin classPointValues- Throws:
java.io.IOException
-
estimatePointCount
public long estimatePointCount(PointValues.IntersectVisitor visitor)
Description copied from class:PointValuesEstimate the number of points that would be visited byPointValues.intersect(org.apache.lucene.index.PointValues.IntersectVisitor)with the givenPointValues.IntersectVisitor. This should run many times faster thanPointValues.intersect(IntersectVisitor).- Specified by:
estimatePointCountin classPointValues
-
getMinPackedValue
public byte[] getMinPackedValue() throws java.io.IOExceptionDescription copied from class:PointValuesReturns minimum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMinPackedValuein classPointValues- Throws:
java.io.IOException
-
getMaxPackedValue
public byte[] getMaxPackedValue() throws java.io.IOExceptionDescription copied from class:PointValuesReturns maximum value for each dimension, packed, or null ifPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)is0- Specified by:
getMaxPackedValuein classPointValues- Throws:
java.io.IOException
-
getNumDimensions
public int getNumDimensions() throws java.io.IOExceptionDescription copied from class:PointValuesReturns how many dimensions are represented in the values- Specified by:
getNumDimensionsin classPointValues- Throws:
java.io.IOException
-
getNumIndexDimensions
public int getNumIndexDimensions() throws java.io.IOExceptionDescription copied from class:PointValuesReturns how many dimensions are used for the index- Specified by:
getNumIndexDimensionsin classPointValues- Throws:
java.io.IOException
-
getBytesPerDimension
public int getBytesPerDimension() throws java.io.IOExceptionDescription copied from class:PointValuesReturns the number of bytes per dimension- Specified by:
getBytesPerDimensionin classPointValues- Throws:
java.io.IOException
-
size
public long size()
Description copied from class:PointValuesReturns the total number of indexed points across all documents.- Specified by:
sizein classPointValues
-
getDocCount
public int getDocCount()
Description copied from class:PointValuesReturns the total number of documents that have indexed at least one point.- Specified by:
getDocCountin classPointValues
-
-