Class CompressingStoredFieldsReader.BlockState

  • Enclosing class:
    CompressingStoredFieldsReader

    private class CompressingStoredFieldsReader.BlockState
    extends java.lang.Object
    Keeps state about the current block of documents.
    • Field Detail

      • docBase

        private int docBase
      • chunkDocs

        private int chunkDocs
      • sliced

        private boolean sliced
      • offsets

        private int[] offsets
      • numStoredFields

        private int[] numStoredFields
      • startPointer

        private long startPointer
    • Constructor Detail

      • BlockState

        private BlockState()
    • 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