public class SimpleTextStoredFieldsReader extends StoredFieldsReader
FOR RECREATIONAL USE ONLY
Modifier and Type | Field and Description |
---|---|
private static long |
BASE_RAM_BYTES_USED |
private FieldInfos |
fieldInfos |
private IndexInput |
in |
private long[] |
offsets |
private BytesRefBuilder |
scratch |
private CharsRefBuilder |
scratchUTF16 |
Constructor and Description |
---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
SimpleTextStoredFieldsReader(long[] offsets,
IndexInput in,
FieldInfos fieldInfos) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
StoredFieldsReader |
clone() |
void |
close() |
private boolean |
equalsAt(BytesRef a,
BytesRef b,
int bOffset) |
private int |
parseIntAt(int offset) |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
private void |
readField(BytesRef type,
FieldInfo fieldInfo,
StoredFieldVisitor visitor) |
private void |
readIndex(int size) |
private void |
readLine() |
java.lang.String |
toString() |
void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
docID |
getMergeInstance
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
private static final long BASE_RAM_BYTES_USED
private long[] offsets
private IndexInput in
private BytesRefBuilder scratch
private CharsRefBuilder scratchUTF16
private final FieldInfos fieldInfos
public SimpleTextStoredFieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws java.io.IOException
java.io.IOException
SimpleTextStoredFieldsReader(long[] offsets, IndexInput in, FieldInfos fieldInfos)
private void readIndex(int size) throws java.io.IOException
java.io.IOException
public void visitDocument(int n, StoredFieldVisitor visitor) throws java.io.IOException
StoredFieldsReader
docID
visitDocument
in class StoredFieldsReader
java.io.IOException
private void readField(BytesRef type, FieldInfo fieldInfo, StoredFieldVisitor visitor) throws java.io.IOException
java.io.IOException
public StoredFieldsReader clone()
clone
in class StoredFieldsReader
public void close() throws java.io.IOException
java.io.IOException
private void readLine() throws java.io.IOException
java.io.IOException
private int parseIntAt(int offset)
public long ramBytesUsed()
Accountable
public java.lang.String toString()
toString
in class java.lang.Object
public void checkIntegrity() throws java.io.IOException
StoredFieldsReader
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 StoredFieldsReader
java.io.IOException