public final class CompressingStoredFieldsReader extends StoredFieldsReader
NULL_ACCOUNTABLE
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
IndexInput s. |
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.
|
String |
toString() |
void |
visitDocument(int docID,
StoredFieldVisitor visitor)
Visit the stored fields for document
docID |
public CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException
IOException
public void close() throws IOException
IndexInput
s.IOException
public void visitDocument(int docID, StoredFieldVisitor visitor) throws IOException
StoredFieldsReader
docID
visitDocument
in class StoredFieldsReader
IOException
public StoredFieldsReader clone()
clone
in class StoredFieldsReader
public StoredFieldsReader getMergeInstance()
StoredFieldsReader
The default implementation returns this
getMergeInstance
in class StoredFieldsReader
public long ramBytesUsed()
Accountable
public Collection<Accountable> getChildResources()
Accountable
Accountables
public void checkIntegrity() throws IOException
StoredFieldsReader
Note 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 StoredFieldsReader
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.