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 |
getMergeInstanceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcesprivate 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.IOExceptionSimpleTextStoredFieldsReader(long[] offsets,
IndexInput in,
FieldInfos fieldInfos)
private void readIndex(int size)
throws java.io.IOException
java.io.IOExceptionpublic void visitDocument(int n,
StoredFieldVisitor visitor)
throws java.io.IOException
StoredFieldsReaderdocIDvisitDocument in class StoredFieldsReaderjava.io.IOExceptionprivate void readField(BytesRef type, FieldInfo fieldInfo, StoredFieldVisitor visitor) throws java.io.IOException
java.io.IOExceptionpublic StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic void close()
throws java.io.IOException
java.io.IOExceptionprivate void readLine()
throws java.io.IOException
java.io.IOExceptionprivate int parseIntAt(int offset)
public long ramBytesUsed()
Accountablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void checkIntegrity()
throws java.io.IOException
StoredFieldsReaderNote 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 StoredFieldsReaderjava.io.IOException