Class PostingDecodingUtil
- java.lang.Object
-
- org.apache.lucene.internal.vectorization.PostingDecodingUtil
-
public class PostingDecodingUtil extends Object
Utility class to decode postings.
-
-
Field Summary
Fields Modifier and Type Field Description IndexInputinThe wrapperIndexInput.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPostingDecodingUtil(IndexInput in)Sole constructor, called by sub-classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsplitLongs(int count, long[] b, int bShift, int dec, long bMask, long[] c, int cIndex, long cMask)Core methods for decoding blocks of docs / freqs / positions / offsets.
-
-
-
Field Detail
-
in
public final IndexInput in
The wrapperIndexInput.
-
-
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 IOExceptionCore methods for decoding blocks of docs / freqs / positions / offsets.- Read
countlongs. - For all
i>= 0 so thatbShift - i * dec> 0, apply shiftbShift - i * decand store the result inbat offsetcount * i. - Apply mask
cMaskand store the result incstarting at offsetcIndex.
- Throws:
IOException
- Read
-
-