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