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
ConstructorsModifierConstructorDescriptionprotected
Sole constructor, called by sub-classes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
splitInts
(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
count
ints. - For all
i
>= 0 so thatbShift - i * dec
> 0, apply shiftbShift - i * dec
and store the result inb
at offsetcount * i
. - Apply mask
cMask
and store the result inc
starting at offsetcIndex
.
- Throws:
IOException
- Read
-