Class PostingDecodingUtil

java.lang.Object
org.apache.lucene.internal.vectorization.PostingDecodingUtil

public class PostingDecodingUtil extends Object
Utility class to decode postings.
  • Field Details

  • Constructor Details

    • PostingDecodingUtil

      protected PostingDecodingUtil(IndexInput in)
      Sole constructor, called by sub-classes.
  • Method Details

    • splitInts

      public void splitInts(int count, int[] b, int bShift, int dec, int bMask, int[] c, int cIndex, int cMask) throws IOException
      Core methods for decoding blocks of docs / freqs / positions / offsets.
      • Read count ints.
      • For all i >= 0 so that bShift - i * dec > 0, apply shift bShift - i * dec and store the result in b at offset count * i.
      • Apply mask cMask and store the result in c starting at offset cIndex.
      Throws:
      IOException