Class PostingIndexInput
- java.lang.Object
-
- org.apache.lucene.codecs.lucene912.PostingIndexInput
-
public final class PostingIndexInput extends Object
Wrapper around anIndexInputand aForUtilthat optionally optimizes decoding using vectorization. This class mostly exists to enable benchmarking the decoding logic of postings since it internally calls code that may only be called from the lucene-core JAR.
-
-
Field Summary
Fields Modifier and Type Field Description ForDeltaUtilforDeltaUtilForUtilforUtil
-
Constructor Summary
Constructors Constructor Description PostingIndexInput(IndexInput in, ForUtil forUtil, ForDeltaUtil forDeltaUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(int bitsPerValue, long[] longs)Decode 128 integers stored onbitsPerValuesbits per value intolongs.voiddecodeAndPrefixSum(int bitsPerValue, long base, long[] longs)Decode 128 integers stored onbitsPerValuesbits per value, compute their prefix sum, and store results intolongs.
-
-
-
Field Detail
-
forUtil
public final ForUtil forUtil
-
forDeltaUtil
public final ForDeltaUtil forDeltaUtil
-
-
Constructor Detail
-
PostingIndexInput
public PostingIndexInput(IndexInput in, ForUtil forUtil, ForDeltaUtil forDeltaUtil) throws IOException
- Throws:
IOException
-
-
Method Detail
-
decode
public void decode(int bitsPerValue, long[] longs) throws IOExceptionDecode 128 integers stored onbitsPerValuesbits per value intolongs.- Throws:
IOException
-
decodeAndPrefixSum
public void decodeAndPrefixSum(int bitsPerValue, long base, long[] longs) throws IOExceptionDecode 128 integers stored onbitsPerValuesbits per value, compute their prefix sum, and store results intolongs.- Throws:
IOException
-
-