public class Lucene60PointsReader extends PointsReader implements Closeable
Lucene60PointsWriterPointValues.IntersectVisitor, PointValues.RelationMAX_DIMENSIONS, MAX_NUM_BYTES| Constructor and Description |
|---|
Lucene60PointsReader(SegmentReadState readState)
Sole constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
void |
close() |
long |
estimatePointCount(String fieldName,
PointValues.IntersectVisitor visitor)
Estimate the number of points that would be visited by
PointValues.intersect(java.lang.String, org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. |
BKDReader |
getBKDReader(String fieldName)
Returns the underlying
BKDReader. |
int |
getBytesPerDimension(String fieldName)
Returns the number of bytes per dimension
|
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
int |
getDocCount(String fieldName)
Returns the total number of documents that have indexed at least one point for this field.
|
byte[] |
getMaxPackedValue(String fieldName)
Returns maximum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
byte[] |
getMinPackedValue(String fieldName)
Returns minimum value for each dimension, packed, or null if
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0 |
int |
getNumDimensions(String fieldName)
Returns how many dimensions were indexed
|
void |
intersect(String fieldName,
PointValues.IntersectVisitor visitor)
Finds all documents and points matching the provided visitor.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
long |
size(String fieldName)
Returns the total number of indexed points across all documents in this field.
|
getMergeInstancegetDocCount, getMaxPackedValue, getMinPackedValue, sizepublic Lucene60PointsReader(SegmentReadState readState) throws IOException
IOExceptionpublic BKDReader getBKDReader(String fieldName)
BKDReader.public void intersect(String fieldName, PointValues.IntersectVisitor visitor) throws IOException
PointValuesintersect in class PointValuesIOExceptionpublic long estimatePointCount(String fieldName, PointValues.IntersectVisitor visitor)
PointValuesPointValues.intersect(java.lang.String, org.apache.lucene.index.PointValues.IntersectVisitor)
with the given PointValues.IntersectVisitor. This should run many times faster
than PointValues.intersect(String, IntersectVisitor).estimatePointCount in class PointValuesDocIdSetIterator.cost()public long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic void checkIntegrity()
throws IOException
PointsReaderNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class PointsReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic byte[] getMinPackedValue(String fieldName)
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMinPackedValue in class PointValuespublic byte[] getMaxPackedValue(String fieldName)
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMaxPackedValue in class PointValuespublic int getNumDimensions(String fieldName)
PointValuesgetNumDimensions in class PointValuespublic int getBytesPerDimension(String fieldName)
PointValuesgetBytesPerDimension in class PointValuespublic long size(String fieldName)
PointValuessize in class PointValuespublic int getDocCount(String fieldName)
PointValuesgetDocCount in class PointValuesCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.