java.lang.Object
org.apache.lucene.codecs.lucene912.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
FieldsModifier and TypeFieldDescriptionfinal ForDeltaUtil
final ForUtil
private final PostingDecodingUtil
private static final VectorizationProvider
-
Constructor Summary
ConstructorsConstructorDescriptionPostingIndexInput
(IndexInput in, ForUtil forUtil, ForDeltaUtil forDeltaUtil) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(int bitsPerValue, long[] longs) Decode 128 integers stored onbitsPerValues
bits per value intolongs
.void
decodeAndPrefixSum
(int bitsPerValue, long base, long[] longs) Decode 128 integers stored onbitsPerValues
bits per value, compute their prefix sum, and store results intolongs
.
-
Field Details
-
VECTORIZATION_PROVIDER
-
forUtil
-
forDeltaUtil
-
postingDecodingUtil
-
-
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 intolongs
.- Throws:
IOException
-
decodeAndPrefixSum
Decode 128 integers stored onbitsPerValues
bits per value, compute their prefix sum, and store results intolongs
.- Throws:
IOException
-