Class PostingDecodingUtil
java.lang.Object
org.apache.lucene.internal.vectorization.PostingDecodingUtil
Utility class to decode postings.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSole constructor, called by sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionvoidsplitInts(int count, int[] b, int bShift, int dec, int bMask, int[] c, int cIndex, int cMask) Core methods for decoding blocks of docs / freqs / positions / offsets.
-
Field Details
-
in
The wrapperIndexInput.
-
-
Constructor Details
-
PostingDecodingUtil
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
countints. - 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
-