class SimpleTextPointsReader extends PointsReader
Modifier and Type | Field and Description |
---|---|
private IndexInput |
dataIn |
(package private) java.util.Map<java.lang.String,SimpleTextBKDReader> |
readers |
(package private) SegmentReadState |
readState |
(package private) BytesRefBuilder |
scratch |
Constructor and Description |
---|
SimpleTextPointsReader(SegmentReadState readState) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
void |
close() |
PointValues |
getValues(java.lang.String fieldName)
Return
PointValues for the given field . |
private SimpleTextBKDReader |
initReader(long fp) |
private int |
parseInt(BytesRef prefix) |
private long |
parseLong(BytesRef prefix) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
private void |
readLine(IndexInput in) |
private boolean |
startsWith(BytesRef prefix) |
private java.lang.String |
stripPrefix(BytesRef prefix) |
java.lang.String |
toString() |
getMergeInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
private final IndexInput dataIn
final SegmentReadState readState
final java.util.Map<java.lang.String,SimpleTextBKDReader> readers
final BytesRefBuilder scratch
public SimpleTextPointsReader(SegmentReadState readState) throws java.io.IOException
java.io.IOException
private SimpleTextBKDReader initReader(long fp) throws java.io.IOException
java.io.IOException
private void readLine(IndexInput in) throws java.io.IOException
java.io.IOException
private boolean startsWith(BytesRef prefix)
private int parseInt(BytesRef prefix)
private long parseLong(BytesRef prefix)
private java.lang.String stripPrefix(BytesRef prefix)
public PointValues getValues(java.lang.String fieldName) throws java.io.IOException
PointsReader
PointValues
for the given field
.getValues
in class PointsReader
java.io.IOException
public void checkIntegrity() throws java.io.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
java.io.IOException
public long ramBytesUsed()
Accountable
public void close() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object