Class Lucene90CompressingStoredFieldsReader
- java.lang.Object
-
- org.apache.lucene.codecs.StoredFieldsReader
-
- org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Cloneable
public final class Lucene90CompressingStoredFieldsReader extends StoredFieldsReader
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description Lucene90CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this reader.StoredFieldsReader
clone()
void
close()
Close the underlyingIndexInput
s.StoredFieldsReader
getMergeInstance()
Returns an instance optimized for merging.String
toString()
void
visitDocument(int docID, StoredFieldVisitor visitor)
Visit the stored fields for documentdocID
-
-
-
Constructor Detail
-
Lucene90CompressingStoredFieldsReader
public Lucene90CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException
Sole constructor.- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
Close the underlyingIndexInput
s.- Throws:
IOException
-
visitDocument
public void visitDocument(int docID, StoredFieldVisitor visitor) throws IOException
Description copied from class:StoredFieldsReader
Visit the stored fields for documentdocID
- Specified by:
visitDocument
in classStoredFieldsReader
- Throws:
IOException
-
clone
public StoredFieldsReader clone()
- Specified by:
clone
in classStoredFieldsReader
-
getMergeInstance
public StoredFieldsReader getMergeInstance()
Description copied from class:StoredFieldsReader
Returns an instance optimized for merging. This instance may not be cloned.The default implementation returns
this
- Overrides:
getMergeInstance
in classStoredFieldsReader
-
checkIntegrity
public void checkIntegrity() throws IOException
Description copied from class:StoredFieldsReader
Checks consistency of this reader.Note that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrity
in classStoredFieldsReader
- Throws:
IOException
-
-