public class Lucene60PointsReader extends PointsReader implements java.io.Closeable
Lucene60PointsWriterPointValues.IntersectVisitor, PointValues.Relation| Modifier and Type | Field and Description |
|---|---|
(package private) IndexInput |
dataIn |
(package private) java.util.Map<java.lang.Integer,BKDReader> |
readers |
(package private) SegmentReadState |
readState |
MAX_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() |
BKDReader |
getBKDReader(java.lang.String fieldName)
Returns the underlying
BKDReader. |
int |
getBytesPerDimension(java.lang.String fieldName)
Returns the number of bytes per dimension
|
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
int |
getDocCount(java.lang.String fieldName)
Returns the total number of documents that have indexed at least one point for this field.
|
byte[] |
getMaxPackedValue(java.lang.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(java.lang.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(java.lang.String fieldName)
Returns how many dimensions were indexed
|
void |
intersect(java.lang.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(java.lang.String fieldName)
Returns the total number of indexed points across all documents in this field.
|
getMergeInstancegetDocCount, getMaxPackedValue, getMinPackedValue, sizefinal IndexInput dataIn
final SegmentReadState readState
final java.util.Map<java.lang.Integer,BKDReader> readers
public Lucene60PointsReader(SegmentReadState readState) throws java.io.IOException
java.io.IOExceptionpublic BKDReader getBKDReader(java.lang.String fieldName)
BKDReader.public void intersect(java.lang.String fieldName,
PointValues.IntersectVisitor visitor)
throws java.io.IOException
PointValuesintersect in class PointValuesjava.io.IOExceptionpublic long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountablegetChildResources in interface AccountableAccountablespublic void checkIntegrity()
throws java.io.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 PointsReaderjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic byte[] getMinPackedValue(java.lang.String fieldName)
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMinPackedValue in class PointValuespublic byte[] getMaxPackedValue(java.lang.String fieldName)
PointValuesPointValues.size(org.apache.lucene.index.IndexReader, java.lang.String) is 0getMaxPackedValue in class PointValuespublic int getNumDimensions(java.lang.String fieldName)
PointValuesgetNumDimensions in class PointValuespublic int getBytesPerDimension(java.lang.String fieldName)
PointValuesgetBytesPerDimension in class PointValuespublic long size(java.lang.String fieldName)
PointValuessize in class PointValuespublic int getDocCount(java.lang.String fieldName)
PointValuesgetDocCount in class PointValues