public final class CompressingStoredFieldsReader extends StoredFieldsReader
| Constructor and Description |
|---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
String segmentSuffix,
FieldInfos fn,
IOContext context,
String formatName,
CompressionMode compressionMode)
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this reader.
|
StoredFieldsReader |
clone() |
void |
close()
Close the underlying
IndexInputs. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
void |
visitDocument(int docID,
StoredFieldVisitor visitor)
Visit the stored fields for document
n |
public CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException
IOExceptionpublic void close()
throws IOException
IndexInputs.IOExceptionpublic void visitDocument(int docID,
StoredFieldVisitor visitor)
throws IOException
StoredFieldsReadernvisitDocument in class StoredFieldsReaderIOExceptionpublic StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic 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-2015 Apache Software Foundation. All Rights Reserved.