java.lang.Object
org.apache.lucene.codecs.lucene99.PostingsUtil
Utility class to encode/decode postings block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
readVIntBlock
(IndexInput docIn, long[] docBuffer, long[] freqBuffer, int num, boolean indexHasFreq, boolean decodeFreq) Read values that have been written using variable-length encoding and group-varint encoding instead of bit-packing.(package private) static void
writeVIntBlock
(IndexOutput docOut, long[] docBuffer, long[] freqBuffer, int num, boolean writeFreqs) Write freq buffer with variable-length encoding and doc buffer with group-varint encoding.
-
Constructor Details
-
PostingsUtil
PostingsUtil()
-
-
Method Details
-
readVIntBlock
static void readVIntBlock(IndexInput docIn, long[] docBuffer, long[] freqBuffer, int num, boolean indexHasFreq, boolean decodeFreq) throws IOException Read values that have been written using variable-length encoding and group-varint encoding instead of bit-packing.- Throws:
IOException
-
writeVIntBlock
static void writeVIntBlock(IndexOutput docOut, long[] docBuffer, long[] freqBuffer, int num, boolean writeFreqs) throws IOException Write freq buffer with variable-length encoding and doc buffer with group-varint encoding.- Throws:
IOException
-