public class Lucene60PointsReader extends PointsReader implements Closeable
Lucene60PointsWriter
PointValues.IntersectVisitor, PointValues.Relation
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() |
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.
|
getMergeInstance
getDocCount, getMaxPackedValue, getMinPackedValue, size
public Lucene60PointsReader(SegmentReadState readState) throws IOException
IOException
public void intersect(String fieldName, PointValues.IntersectVisitor visitor) throws IOException
PointValues
intersect
in class PointValues
IOException
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public Collection<Accountable> getChildResources()
Accountable
getChildResources
in interface Accountable
Accountables
public void checkIntegrity() throws IOException
PointsReader
Note 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 PointsReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public byte[] getMinPackedValue(String fieldName)
PointValues
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is 0
getMinPackedValue
in class PointValues
public byte[] getMaxPackedValue(String fieldName)
PointValues
PointValues.size(org.apache.lucene.index.IndexReader, java.lang.String)
is 0
getMaxPackedValue
in class PointValues
public int getNumDimensions(String fieldName)
PointValues
getNumDimensions
in class PointValues
public int getBytesPerDimension(String fieldName)
PointValues
getBytesPerDimension
in class PointValues
public long size(String fieldName)
PointValues
size
in class PointValues
public int getDocCount(String fieldName)
PointValues
getDocCount
in class PointValues
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.