Class Lucene912PostingsReader.BlockImpactsEnum

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.PostingsEnum
org.apache.lucene.index.ImpactsEnum
org.apache.lucene.backward_codecs.lucene912.Lucene912PostingsReader.BlockImpactsEnum
All Implemented Interfaces:
ImpactsSource
Direct Known Subclasses:
Lucene912PostingsReader.BlockImpactsDocsEnum, Lucene912PostingsReader.BlockImpactsPostingsEnum
Enclosing class:
Lucene912PostingsReader

private abstract class Lucene912PostingsReader.BlockImpactsEnum extends ImpactsEnum
  • Field Details

    • forDeltaUtil

      protected final ForDeltaUtil forDeltaUtil
    • pforUtil

      protected final PForUtil pforUtil
    • docBuffer

      protected final long[] docBuffer
    • freqBuffer

      protected final long[] freqBuffer
    • docFreq

      protected final int docFreq
    • docIn

      protected final IndexInput docIn
    • docCountUpto

      protected int docCountUpto
    • doc

      protected int doc
    • prevDocID

      protected long prevDocID
    • docBufferSize

      protected int docBufferSize
    • docBufferUpto

      protected int docBufferUpto
    • needsRefilling

      protected boolean needsRefilling
    • level0LastDocID

      protected int level0LastDocID
    • level0DocEndFP

      protected long level0DocEndFP
    • level0SerializedImpacts

      protected final BytesRef level0SerializedImpacts
    • level0Impacts

      protected final Lucene912PostingsReader.MutableImpactList level0Impacts
    • level1LastDocID

      protected int level1LastDocID
    • level1DocEndFP

      protected long level1DocEndFP
    • level1DocCountUpto

      protected int level1DocCountUpto
    • level1SerializedImpacts

      protected final BytesRef level1SerializedImpacts
    • level1Impacts

      protected final Lucene912PostingsReader.MutableImpactList level1Impacts
    • impacts

      private final Impacts impacts
  • Constructor Details

  • Method Details

    • docID

      public int docID()
      Description copied from class: DocIdSetIterator
      Returns the following:
      Specified by:
      docID in class DocIdSetIterator
    • startOffset

      public int startOffset()
      Description copied from class: PostingsEnum
      Returns start offset for the current position, or -1 if offsets were not indexed.
      Specified by:
      startOffset in class PostingsEnum
    • endOffset

      public int endOffset()
      Description copied from class: PostingsEnum
      Returns end offset for the current position, or -1 if offsets were not indexed.
      Specified by:
      endOffset in class PostingsEnum
    • getPayload

      public BytesRef getPayload()
      Description copied from class: PostingsEnum
      Returns the payload at this position, or null if no payload was indexed. You should not modify anything (neither members of the returned BytesRef nor bytes in the byte[]).
      Specified by:
      getPayload in class PostingsEnum
    • cost

      public long cost()
      Description copied from class: DocIdSetIterator
      Returns the estimated cost of this DocIdSetIterator.

      This is generally an upper bound of the number of documents this iterator might match, but may be a rough heuristic, hardcoded value, or otherwise completely inaccurate.

      Specified by:
      cost in class DocIdSetIterator
    • getImpacts

      public Impacts getImpacts()
      Description copied from interface: ImpactsSource
      Get information about upcoming impacts for doc ids that are greater than or equal to the maximum of DocIdSetIterator.docID() and the last target that was passed to ImpactsSource.advanceShallow(int). This method may not be called on an unpositioned iterator on which ImpactsSource.advanceShallow(int) has never been called. NOTE: advancing this iterator may invalidate the returned impacts, so they should not be used after the iterator has been advanced.