Class CompressingStoredFieldsIndexReader

    • Field Detail

      • BASE_RAM_BYTES_USED

        private static final long BASE_RAM_BYTES_USED
      • maxDoc

        final int maxDoc
      • docBases

        final int[] docBases
      • startPointers

        final long[] startPointers
      • avgChunkDocs

        final int[] avgChunkDocs
      • avgChunkSizes

        final long[] avgChunkSizes
    • Constructor Detail

      • CompressingStoredFieldsIndexReader

        CompressingStoredFieldsIndexReader​(IndexInput fieldsIndexIn,
                                           SegmentInfo si)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • block

        private int block​(int docID)
      • relativeDocBase

        private int relativeDocBase​(int block,
                                    int relativeChunk)
      • relativeStartPointer

        private long relativeStartPointer​(int block,
                                          int relativeChunk)
      • relativeChunk

        private int relativeChunk​(int block,
                                  int relativeDoc)
      • getStartPointer

        long getStartPointer​(int docID)
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.
        Specified by:
        ramBytesUsed in interface Accountable
      • 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).
        Specified by:
        getChildResources in interface Accountable
        See Also:
        Accountables
      • toString

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