Class Lucene90CompressingStoredFieldsReader
java.lang.Object
org.apache.lucene.codecs.StoredFieldsReader
org.apache.lucene.codecs.lucene90.compressing.Lucene90CompressingStoredFieldsReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classKeeps state about the current block of documents.(package private) static classA serialized document, you need to decode its input in order to get an actualDocument. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate booleanprivate final CompressionModeprivate final Decompressorprivate final FieldInfosprivate final IndexInputprivate final FieldsIndexprivate final longprivate final booleanprivate final longprivate final longprivate final longprivate final intprivate final Lucene90CompressingStoredFieldsReader.BlockStateprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLucene90CompressingStoredFieldsReader(Lucene90CompressingStoredFieldsReader reader, boolean merging) Lucene90CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this reader.clone()voidclose()Close the underlyingIndexInputs.(package private) Lucene90CompressingStoredFieldsReader.SerializedDocumentdocument(int docID) private void(package private) int(package private) CompressionMode(package private) IndexInput(package private) FieldsIndex(package private) longReturns an instance optimized for merging.(package private) long(package private) long(package private) long(package private) int(package private) int(package private) booleanisLoaded(int docID) Checks if a given docID was loaded in the current block state.private static voidreadField(DataInput in, StoredFieldVisitor visitor, FieldInfo info, int bits) (package private) static longReads a long in a variable-length format.(package private) static doublereadZDouble(DataInput in) Reads a double in a variable-length format.(package private) static floatreadZFloat(DataInput in) Reads a float in a variable-length format.private static voidtoString()voidvisitDocument(int docID, StoredFieldVisitor visitor) Visit the stored fields for documentdocID
-
Field Details
-
version
private final int version -
fieldInfos
-
indexReader
-
maxPointer
private final long maxPointer -
fieldsStream
-
chunkSize
private final int chunkSize -
compressionMode
-
decompressor
-
numDocs
private final int numDocs -
merging
private final boolean merging -
state
-
numChunks
private final long numChunks -
numDirtyChunks
private final long numDirtyChunks -
numDirtyDocs
private final long numDirtyDocs -
closed
private boolean closed
-
-
Constructor Details
-
Lucene90CompressingStoredFieldsReader
private Lucene90CompressingStoredFieldsReader(Lucene90CompressingStoredFieldsReader reader, boolean merging) -
Lucene90CompressingStoredFieldsReader
public Lucene90CompressingStoredFieldsReader(Directory d, SegmentInfo si, String segmentSuffix, FieldInfos fn, IOContext context, String formatName, CompressionMode compressionMode) throws IOException Sole constructor.- Throws:
IOException
-
-
Method Details
-
ensureOpen
- Throws:
AlreadyClosedException- if this FieldsReader is closed
-
close
Close the underlyingIndexInputs.- Throws:
IOException
-
readField
private static void readField(DataInput in, StoredFieldVisitor visitor, FieldInfo info, int bits) throws IOException - Throws:
IOException
-
skipField
- Throws:
IOException
-
readZFloat
Reads a float in a variable-length format. Reads between one and five bytes. Small integral values typically take fewer bytes.- Throws:
IOException
-
readZDouble
Reads a double in a variable-length format. Reads between one and nine bytes. Small integral values typically take fewer bytes.- Throws:
IOException
-
readTLong
Reads a long in a variable-length format. Reads between one andCorePropLo nine bytes. Small values typically take fewer bytes.- Throws:
IOException
-
document
- Throws:
IOException
-
isLoaded
boolean isLoaded(int docID) Checks if a given docID was loaded in the current block state. -
visitDocument
Description copied from class:StoredFieldsReaderVisit the stored fields for documentdocID- Specified by:
visitDocumentin classStoredFieldsReader- Throws:
IOException
-
clone
- Specified by:
clonein classStoredFieldsReader
-
getMergeInstance
Description copied from class:StoredFieldsReaderReturns an instance optimized for merging. This instance may not be cloned.The default implementation returns
this- Overrides:
getMergeInstancein classStoredFieldsReader
-
getVersion
int getVersion() -
getCompressionMode
CompressionMode getCompressionMode() -
getIndexReader
FieldsIndex getIndexReader() -
getMaxPointer
long getMaxPointer() -
getFieldsStream
IndexInput getFieldsStream() -
getChunkSize
int getChunkSize() -
getNumDirtyDocs
long getNumDirtyDocs() -
getNumDirtyChunks
long getNumDirtyChunks() -
getNumChunks
long getNumChunks() -
getNumDocs
int getNumDocs() -
checkIntegrity
Description copied from class:StoredFieldsReaderChecks 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:
checkIntegrityin classStoredFieldsReader- Throws:
IOException
-
toString
-