Class PostingDecodingUtil


  • public class PostingDecodingUtil
    extends Object
    Utility class to decode postings.
    • Constructor Detail

      • PostingDecodingUtil

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

      • splitLongs

        public void splitLongs​(int count,
                               long[] b,
                               int bShift,
                               int dec,
                               long bMask,
                               long[] c,
                               int cIndex,
                               long cMask)
                        throws IOException
        Core methods for decoding blocks of docs / freqs / positions / offsets.
        • Read count longs.
        • 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