Package org.apache.lucene.util.packed
Class BulkOperationPacked19
- java.lang.Object
-
- org.apache.lucene.util.packed.BulkOperation
-
- org.apache.lucene.util.packed.BulkOperationPacked
-
- org.apache.lucene.util.packed.BulkOperationPacked19
-
- All Implemented Interfaces:
PackedInts.Decoder,PackedInts.Encoder
final class BulkOperationPacked19 extends BulkOperationPacked
Efficient sequential read/write of packed integers.
-
-
Constructor Summary
Constructors Constructor Description BulkOperationPacked19()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(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, longValueCount
-
Methods inherited from class org.apache.lucene.util.packed.BulkOperation
computeIterations, of, writeLong
-
-
-
-
Method Detail
-
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
-
-