Class LegacyFieldsIndexReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Cloneable

    final class LegacyFieldsIndexReader
    extends FieldsIndex
    • Field Detail

      • maxDoc

        final int maxDoc
      • docBases

        final int[] docBases
      • startPointers

        final long[] startPointers
      • avgChunkDocs

        final int[] avgChunkDocs
      • avgChunkSizes

        final long[] avgChunkSizes
    • Constructor Detail

      • LegacyFieldsIndexReader

        LegacyFieldsIndexReader​(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)
        Description copied from class: FieldsIndex
        Get the start pointer for the block that contains the given docID.
        Specified by:
        getStartPointer in class FieldsIndex
      • toString

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

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • checkIntegrity

        void checkIntegrity()
                     throws java.io.IOException
        Description copied from class: FieldsIndex
        Check the integrity of the index.
        Specified by:
        checkIntegrity in class FieldsIndex
        Throws:
        java.io.IOException