java.lang.Object
org.apache.lucene.util.packed.BulkOperation
org.apache.lucene.util.packed.BulkOperationPacked
org.apache.lucene.util.packed.BulkOperationPacked1
- All Implemented Interfaces:
PackedInts.Decoder,PackedInts.Encoder
Efficient sequential read/write of packed integers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.voiddecode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.voiddecode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Readiterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.voiddecode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Readiterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.Methods inherited from class org.apache.lucene.util.packed.BulkOperationPacked
byteBlockCount, byteValueCount, encode, encode, encode, encode, longBlockCount, longValueCountMethods inherited from class org.apache.lucene.util.packed.BulkOperation
computeIterations, of, writeLong
-
Constructor Details
-
BulkOperationPacked1
public BulkOperationPacked1()
-
-
Method Details
-
decode
public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.DecoderReaditerations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.- Specified by:
decodein interfacePackedInts.Decoder- Overrides:
decodein classBulkOperationPacked- Parameters:
blocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start reading blocksvalues- the values buffervaluesOffset- the offset where to start writing valuesiterations- controls how much data to decode
-
decode
public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.DecoderRead8 * iterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.- Specified by:
decodein interfacePackedInts.Decoder- Overrides:
decodein classBulkOperationPacked- Parameters:
blocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start reading blocksvalues- the values buffervaluesOffset- the offset where to start writing valuesiterations- controls how much data to decode
-
decode
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.DecoderReaditerations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.- Specified by:
decodein interfacePackedInts.Decoder- Overrides:
decodein classBulkOperationPacked- Parameters:
blocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start reading blocksvalues- the values buffervaluesOffset- the offset where to start writing valuesiterations- controls how much data to decode
-
decode
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.DecoderRead8 * iterations * blockCount()blocks fromblocks, decode them and writeiterations * valueCount()values intovalues.- Specified by:
decodein interfacePackedInts.Decoder- Overrides:
decodein classBulkOperationPacked- Parameters:
blocks- the long blocks that hold packed integer valuesblocksOffset- the offset where to start reading blocksvalues- the values buffervaluesOffset- the offset where to start writing valuesiterations- controls how much data to decode
-