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() |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
visitDocument(int n,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
public SimpleTextStoredFieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws IOException
IOExceptionpublic void visitDocument(int n,
StoredFieldVisitor visitor)
throws IOException
StoredFieldsReadernvisitDocument in class StoredFieldsReaderIOExceptionpublic StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic void close()
throws IOException
IOExceptionpublic long ramBytesUsed()
Accountablepublic 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–2021 The Apache Software Foundation. All rights reserved.