Class BPIndexReorderer.ForwardIndex

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

    private static final class BPIndexReorderer.ForwardIndex
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Closeable
    A forward index. Like term vectors, but only for a subset of terms, and it produces term IDs instead of whole terms.
    • Field Detail

      • startOffsetsInput

        private final IndexInput startOffsetsInput
      • maxTerm

        private final int maxTerm
      • endOffset

        private long endOffset
      • buffer

        private final int[] buffer
      • bufferRef

        private final IntsRef bufferRef
    • Constructor Detail

    • Method Detail

      • seek

        void seek​(int docID)
           throws java.io.IOException
        Throws:
        java.io.IOException
      • nextTerms

        IntsRef nextTerms()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException