public class SimpleTextStoredFieldsReader extends StoredFieldsReader
FOR RECREATIONAL USE ONLY
| Constructor and Description |
|---|
SimpleTextStoredFieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
StoredFieldsReader |
clone() |
void |
close() |
Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
String |
toString() |
void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
docID |
getMergeInstancepublic SimpleTextStoredFieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws IOException
IOExceptionpublic void visitDocument(int n,
StoredFieldVisitor visitor)
throws IOException
StoredFieldsReaderdocIDvisitDocument in class StoredFieldsReaderIOExceptionpublic StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic void close()
throws IOException
IOExceptionpublic long ramBytesUsed()
Accountablepublic Collection<Accountable> getChildResources()
AccountableAccountablespublic void checkIntegrity()
throws 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 StoredFieldsReaderIOExceptionCopyright © 2000-2017 The Apache Software Foundation. All Rights Reserved.