java.lang.Object
org.apache.lucene.util.packed.BulkOperation
org.apache.lucene.util.packed.BulkOperationPacked
- All Implemented Interfaces:
PackedInts.Decoder
,PackedInts.Encoder
- Direct Known Subclasses:
BulkOperationPacked1
,BulkOperationPacked10
,BulkOperationPacked11
,BulkOperationPacked12
,BulkOperationPacked13
,BulkOperationPacked14
,BulkOperationPacked15
,BulkOperationPacked16
,BulkOperationPacked17
,BulkOperationPacked18
,BulkOperationPacked19
,BulkOperationPacked2
,BulkOperationPacked20
,BulkOperationPacked21
,BulkOperationPacked22
,BulkOperationPacked23
,BulkOperationPacked24
,BulkOperationPacked3
,BulkOperationPacked4
,BulkOperationPacked5
,BulkOperationPacked6
,BulkOperationPacked7
,BulkOperationPacked8
,BulkOperationPacked9
Non-specialized
BulkOperation
for PackedInts.Format.PACKED
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final int
private final int
private final int
private final int
private final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The minimum number of byte blocks to encode in a single iteration, when using byte encoding.int
The number of values that can be stored inPackedInts.Decoder.byteBlockCount()
byte blocks.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
.void
encode
(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()
values fromvalues
, encode them and write8 * iterations * blockCount()
blocks intoblocks
.void
encode
(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()
values fromvalues
, encode them and writeiterations * blockCount()
blocks intoblocks
.void
encode
(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()
values fromvalues
, encode them and write8 * iterations * blockCount()
blocks intoblocks
.void
encode
(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Readiterations * valueCount()
values fromvalues
, encode them and writeiterations * blockCount()
blocks intoblocks
.int
The minimum number of long blocks to encode in a single iteration, when using long encoding.int
The number of values that can be stored inPackedInts.Decoder.longBlockCount()
long blocks.Methods inherited from class org.apache.lucene.util.packed.BulkOperation
computeIterations, of, writeLong
-
Field Details
-
bitsPerValue
private final int bitsPerValue -
longBlockCount
private final int longBlockCount -
longValueCount
private final int longValueCount -
byteBlockCount
private final int byteBlockCount -
byteValueCount
private final int byteValueCount -
mask
private final long mask -
intMask
private final int intMask
-
-
Constructor Details
-
BulkOperationPacked
public BulkOperationPacked(int bitsPerValue)
-
-
Method Details
-
longBlockCount
public int longBlockCount()Description copied from interface:PackedInts.Decoder
The minimum number of long blocks to encode in a single iteration, when using long encoding. -
longValueCount
public int longValueCount()Description copied from interface:PackedInts.Decoder
The number of values that can be stored inPackedInts.Decoder.longBlockCount()
long blocks. -
byteBlockCount
public int byteBlockCount()Description copied from interface:PackedInts.Decoder
The minimum number of byte blocks to encode in a single iteration, when using byte encoding. -
byteValueCount
public int byteValueCount()Description copied from interface:PackedInts.Decoder
The number of values that can be stored inPackedInts.Decoder.byteBlockCount()
byte blocks. -
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
.- 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
.- 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, int[] values, int valuesOffset, int iterations) Description copied from interface:PackedInts.Decoder
Readiterations * blockCount()
blocks fromblocks
, decode them and writeiterations * valueCount()
values intovalues
.- 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
.- 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
-
encode
public void encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Description copied from interface:PackedInts.Encoder
Readiterations * valueCount()
values fromvalues
, encode them and writeiterations * blockCount()
blocks intoblocks
.- Parameters:
values
- the values buffervaluesOffset
- the offset where to start reading valuesblocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksiterations
- controls how much data to encode
-
encode
public void encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations) Description copied from interface:PackedInts.Encoder
Readiterations * valueCount()
values fromvalues
, encode them and writeiterations * blockCount()
blocks intoblocks
.- Parameters:
values
- the values buffervaluesOffset
- the offset where to start reading valuesblocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksiterations
- controls how much data to encode
-
encode
public void encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Description copied from interface:PackedInts.Encoder
Readiterations * valueCount()
values fromvalues
, encode them and write8 * iterations * blockCount()
blocks intoblocks
.- Parameters:
values
- the values buffervaluesOffset
- the offset where to start reading valuesblocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksiterations
- controls how much data to encode
-
encode
public void encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) Description copied from interface:PackedInts.Encoder
Readiterations * valueCount()
values fromvalues
, encode them and write8 * iterations * blockCount()
blocks intoblocks
.- Parameters:
values
- the values buffervaluesOffset
- the offset where to start reading valuesblocks
- the long blocks that hold packed integer valuesblocksOffset
- the offset where to start writing blocksiterations
- controls how much data to encode
-