Class CompressingStoredFieldsReader.BlockState
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.BlockState
-
- Enclosing class:
- CompressingStoredFieldsReader
private class CompressingStoredFieldsReader.BlockState extends java.lang.Object
Keeps state about the current block of documents.
-
-
Field Summary
Fields Modifier and Type Field Description private BytesRef
bytes
private int
chunkDocs
private int
docBase
private int[]
numStoredFields
private int[]
offsets
private boolean
sliced
private BytesRef
spare
private long
startPointer
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
contains(int docID)
(package private) CompressingStoredFieldsReader.SerializedDocument
document(int docID)
Get the serialized representation of the given docID.private void
doReset(int docID)
(package private) void
reset(int docID)
Reset this block so that it stores state for the block that contains the given doc id.
-
-
-
Method Detail
-
contains
boolean contains(int docID)
-
reset
void reset(int docID) throws java.io.IOException
Reset this block so that it stores state for the block that contains the given doc id.- Throws:
java.io.IOException
-
doReset
private void doReset(int docID) throws java.io.IOException
- Throws:
java.io.IOException
-
document
CompressingStoredFieldsReader.SerializedDocument document(int docID) throws java.io.IOException
Get the serialized representation of the given docID. This docID has to be contained in the current block.- Throws:
java.io.IOException
-
-