Module org.apache.lucene.core
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 TypeMethodDescriptionvoidsplitLongs(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 Details
-
in
The wrapperIndexInput.
-
-
Constructor Details
-
PostingDecodingUtil
Sole constructor, called by sub-classes.
-
-
Method Details
-
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
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
-