Package io.deephaven.engine.rowset
Interface RowSetBuilderRandom
- All Known Implementing Classes:
AdaptiveRowSetBuilderRandom,BitmapRandomBuilder,PrecomputedRowSetBuilderRandom
public interface RowSetBuilderRandom
Builder interface for
RowSet construction in arbitrary order.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKey(long rowKey) default voiddefault voidaddOrderedRowKeysChunk(IntChunk<? extends OrderedRowKeys> chunk) default voidaddOrderedRowKeysChunk(LongChunk<? extends OrderedRowKeys> chunk) default voidaddOrderedRowKeysChunk(LongChunk<OrderedRowKeys> chunk, int offset, int length) voidaddRange(long firstRowKey, long lastRowKey) default voiddefault voidaddRowKeysChunk(IntChunk<? extends RowKeys> chunk) default voidaddRowKeysChunk(LongChunk<? extends RowKeys> chunk) default voidaddRowKeysChunk(LongChunk<? extends RowKeys> chunk, int offset, int length) Add the row keys in positions[offset, offset + length)ofchunk, which may be in any order.default voidAdd every row key inrowSet.build()Build theWritableRowSetfrom the accumulated row keys.
-
Method Details
-
build
WritableRowSet build()Build theWritableRowSetfrom the accumulated row keys. Builders are single use: at most one build call is permitted, and subsequent calls throwIllegalStateException. The effect of providing further row keys after building is undefined.- Returns:
- The built RowSet
-
addKey
void addKey(long rowKey) -
addRange
void addRange(long firstRowKey, long lastRowKey) -
addKeys
-
addRanges
-
addRowKeysChunk
-
addRowKeysChunk
-
addRowKeysChunk
Add the row keys in positions[offset, offset + length)ofchunk, which may be in any order.- Parameters:
chunk- the row keysoffset- the position of the first key to addlength- the number of keys to add
-
addOrderedRowKeysChunk
-
addOrderedRowKeysChunk
-
addOrderedRowKeysChunk
-
addRowSet
Add every row key inrowSet.- Parameters:
rowSet- The row set to add
-