Package io.deephaven.engine.rowset.impl
Class RowKeyChunkUtils
java.lang.Object
io.deephaven.engine.rowset.impl.RowKeyChunkUtils
Utilities for working with
chunks
of row keys.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LongChunk<OrderedRowKeys>
convertToOrderedKeyIndices
(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk) Generates aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.static void
convertToOrderedKeyIndices
(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk, WritableLongChunk<OrderedRowKeys> dest, int destOffset) Fill aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.static LongChunk<OrderedRowKeys>
Generates aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.static WritableLongChunk<OrderedRowKeyRanges>
Generates aLongChunk<OrderedRowKeyRanges>
from aLongChunk<OrderedRowKeys>
.static WritableLongChunk<OrderedRowKeyRanges>
convertToOrderedKeyRanges
(LongChunk<OrderedRowKeys> chunk, long maxChunkSize) static void
convertToOrderedKeyRanges
(LongChunk<OrderedRowKeys> chunk, WritableLongChunk<OrderedRowKeyRanges> dest) FillsOrderedRowKeyRanges
intodest
from the providedchunk
and specified source range.
-
Constructor Details
-
RowKeyChunkUtils
public RowKeyChunkUtils()
-
-
Method Details
-
convertToOrderedKeyRanges
public static WritableLongChunk<OrderedRowKeyRanges> convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk) Generates aLongChunk<OrderedRowKeyRanges>
from aLongChunk<OrderedRowKeys>
.- Parameters:
chunk
- the chunk to convert- Returns:
- the generated chunk
-
convertToOrderedKeyRanges
@VisibleForTesting public static WritableLongChunk<OrderedRowKeyRanges> convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk, long maxChunkSize) -
convertToOrderedKeyRanges
public static void convertToOrderedKeyRanges(LongChunk<OrderedRowKeys> chunk, WritableLongChunk<OrderedRowKeyRanges> dest) FillsOrderedRowKeyRanges
intodest
from the providedchunk
and specified source range.- Parameters:
chunk
- the chunk to convertdest
- the chunk to fill with ranges
-
convertToOrderedKeyIndices
public static LongChunk<OrderedRowKeys> convertToOrderedKeyIndices(LongChunk<OrderedRowKeyRanges> chunk) Generates aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.- Parameters:
chunk
- the chunk to convert- Returns:
- the generated chunk
-
convertToOrderedKeyIndices
public static LongChunk<OrderedRowKeys> convertToOrderedKeyIndices(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk) Generates aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.- Parameters:
srcOffset
- the offset intochunk
to begin including in the generated chunkchunk
- the chunk to convert- Returns:
- the generated chunk
-
convertToOrderedKeyIndices
public static void convertToOrderedKeyIndices(int srcOffset, LongChunk<OrderedRowKeyRanges> chunk, WritableLongChunk<OrderedRowKeys> dest, int destOffset) Fill aLongChunk<OrderedRowKeys>
fromLongChunk<OrderedRowKeyRanges>
.- Parameters:
srcOffset
- the offset intochunk
to begin including in the generated chunkchunk
- the chunk to convertdest
- the chunk to fill with indices
-