Class CompressingStoredFieldsReader

    • Field Detail

      • version

        private final int version
      • maxPointer

        private final long maxPointer
      • fieldsStream

        private final IndexInput fieldsStream
      • chunkSize

        private final int chunkSize
      • packedIntsVersion

        private final int packedIntsVersion
      • numDocs

        private final int numDocs
      • merging

        private final boolean merging
      • numDirtyChunks

        private final long numDirtyChunks
      • numDirtyDocs

        private final long numDirtyDocs
      • closed

        private boolean closed
    • Constructor Detail

      • CompressingStoredFieldsReader

        public CompressingStoredFieldsReader​(Directory d,
                                             SegmentInfo si,
                                             java.lang.String segmentSuffix,
                                             FieldInfos fn,
                                             IOContext context,
                                             java.lang.String formatName,
                                             CompressionMode compressionMode)
                                      throws java.io.IOException
        Sole constructor.
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Close the underlying IndexInputs.
        Throws:
        java.io.IOException
      • skipField

        private static void skipField​(DataInput in,
                                      int bits)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readZFloat

        static float readZFloat​(DataInput in)
                         throws java.io.IOException
        Reads a float in a variable-length format. Reads between one and five bytes. Small integral values typically take fewer bytes.
        Throws:
        java.io.IOException
      • readZDouble

        static double readZDouble​(DataInput in)
                           throws java.io.IOException
        Reads a double in a variable-length format. Reads between one and nine bytes. Small integral values typically take fewer bytes.
        Throws:
        java.io.IOException
      • readTLong

        static long readTLong​(DataInput in)
                       throws java.io.IOException
        Reads a long in a variable-length format. Reads between one andCorePropLo nine bytes. Small values typically take fewer bytes.
        Throws:
        java.io.IOException
      • getVersion

        int getVersion()
      • getMaxPointer

        long getMaxPointer()
      • getChunkSize

        int getChunkSize()
      • getNumDirtyDocs

        long getNumDirtyDocs()
      • getNumDirtyChunks

        long getNumDirtyChunks()
      • getNumDocs

        int getNumDocs()
      • getPackedIntsVersion

        int getPackedIntsVersion()
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
      • getChildResources

        public java.util.Collection<Accountable> getChildResources()
        Description copied from interface: Accountable
        Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
        See Also:
        Accountables
      • checkIntegrity

        public void checkIntegrity()
                            throws java.io.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 class StoredFieldsReader
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object