Class PostingIndexInput
java.lang.Object
org.apache.lucene.codecs.lucene101.PostingIndexInput
Wrapper around an
IndexInput
and a ForUtil
that 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 -
Constructor Summary
ConstructorsConstructorDescriptionPostingIndexInput
(IndexInput in, ForUtil forUtil, ForDeltaUtil forDeltaUtil) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(int bitsPerValue, int[] ints) Decode 128 integers stored onbitsPerValues
bits per value intoints
.void
decodeAndPrefixSum
(int bitsPerValue, int base, int[] ints) Decode 128 integers stored onbitsPerValues
bits per value, compute their prefix sum, and store results intoints
.
-
Field Details
-
forUtil
-
forDeltaUtil
-
-
Constructor Details
-
PostingIndexInput
public PostingIndexInput(IndexInput in, ForUtil forUtil, ForDeltaUtil forDeltaUtil) throws IOException - Throws:
IOException
-
-
Method Details
-
decode
Decode 128 integers stored onbitsPerValues
bits per value intoints
.- Throws:
IOException
-
decodeAndPrefixSum
Decode 128 integers stored onbitsPerValues
bits per value, compute their prefix sum, and store results intoints
.- Throws:
IOException
-