Package org.apache.lucene.util.packed
Class BulkOperationPacked23
java.lang.Object
org.apache.lucene.util.packed.BulkOperation
org.apache.lucene.util.packed.BulkOperationPacked
org.apache.lucene.util.packed.BulkOperationPacked23
- All Implemented Interfaces:
PackedInts.Decoder
,PackedInts.Encoder
Efficient sequential read/write of packed integers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.void
decode
(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
-
Constructor Details
-
BulkOperationPacked23
public BulkOperationPacked23()
-
-
Method Details
-
decode
public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.Decoder
Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Specified by:
decode
in interfacePackedInts.Decoder
- Overrides:
decode
in 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.Decoder
Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Specified by:
decode
in interfacePackedInts.Decoder
- Overrides:
decode
in 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.Decoder
Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Specified by:
decode
in interfacePackedInts.Decoder
- Overrides:
decode
in 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.Decoder
Read8 * iterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- Specified by:
decode
in interfacePackedInts.Decoder
- Overrides:
decode
in 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
-