public static class AssertingLeafReader.AssertingPointValues extends PointValues
PointValues.IntersectVisitor, PointValues.RelationMAX_DIMENSIONS, MAX_NUM_BYTES| Constructor and Description |
|---|
AssertingPointValues(PointValues in,
int maxDoc)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
PointValues |
getWrapped() |
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.
|
getDocCount, getMaxPackedValue, getMinPackedValue, sizepublic AssertingPointValues(PointValues in, int maxDoc)
public PointValues getWrapped()
public void intersect(PointValues.IntersectVisitor visitor) throws IOException
PointValuesintersect in class PointValuesIOExceptionpublic 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 PointValuesDocIdSetIterator.cost()public byte[] getMinPackedValue()
throws IOException
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMinPackedValue in class PointValuesIOExceptionpublic byte[] getMaxPackedValue()
throws IOException
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMaxPackedValue in class PointValuesIOExceptionpublic int getNumDataDimensions()
throws IOException
PointValuesgetNumDataDimensions in class PointValuesIOExceptionpublic int getNumIndexDimensions()
throws IOException
PointValuesgetNumIndexDimensions in class PointValuesIOExceptionpublic int getBytesPerDimension()
throws IOException
PointValuesgetBytesPerDimension in class PointValuesIOExceptionpublic long size()
PointValuessize in class PointValuespublic int getDocCount()
PointValuesgetDocCount in class PointValuesCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.