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 IndexInput
in
The wrapperIndexInput
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PostingDecodingUtil(IndexInput in)
Sole constructor, called by sub-classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
splitLongs(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 IOException
Core methods for decoding blocks of docs / freqs / positions / offsets.- Read
count
longs. - 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
-
-