public final class CompressingStoredFieldsReader extends StoredFieldsReader
| Constructor and Description |
|---|
CompressingStoredFieldsReader(Directory d,
SegmentInfo si,
java.lang.String segmentSuffix,
FieldInfos fn,
IOContext context,
java.lang.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. |
java.util.Collection<Accountable> |
getChildResources()
Returns nested resources of this class.
|
StoredFieldsReader |
getMergeInstance()
Returns an instance optimized for merging.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
void |
visitDocument(int docID,
StoredFieldVisitor visitor)
Visit the stored fields for document
docID |
public CompressingStoredFieldsReader(Directory d, SegmentInfo si, java.lang.String segmentSuffix, FieldInfos fn, IOContext context, java.lang.String formatName, CompressionMode compressionMode) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
IndexInputs.java.io.IOExceptionpublic void visitDocument(int docID,
StoredFieldVisitor visitor)
throws java.io.IOException
StoredFieldsReaderdocIDvisitDocument in class StoredFieldsReaderjava.io.IOExceptionpublic StoredFieldsReader clone()
clone in class StoredFieldsReaderpublic StoredFieldsReader getMergeInstance()
StoredFieldsReader
The default implementation returns this
getMergeInstance in class StoredFieldsReaderpublic long ramBytesUsed()
Accountablepublic java.util.Collection<Accountable> getChildResources()
AccountableAccountablespublic 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.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.