Package io.deephaven.engine.rowset.impl
Class AdaptiveRowSetBuilderRandom
java.lang.Object
io.deephaven.engine.rowset.impl.AdaptiveRowSetBuilderRandom
- All Implemented Interfaces:
RowSetBuilderRandom
RowSetBuilderRandom implementation that uses an adaptive pattern based on workload.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.rowset.RowSetBuilderRandom
RowSetBuilderRandom.Helper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKey(long rowKey) voidaddOrderedRowKeysChunk(IntChunk<? extends OrderedRowKeys> chunk) voidaddOrderedRowKeysChunk(LongChunk<? extends OrderedRowKeys> chunk) voidaddOrderedRowKeysChunk(LongChunk<OrderedRowKeys> chunk, int offset, int length) voidaddRange(long firstRowKey, long lastRowKey) 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.voidAdd every row key inrowSet.build()Build theWritableRowSetfrom the accumulated row keys.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.engine.rowset.RowSetBuilderRandom
addKeys, addRanges, addRowKeysChunk, addRowKeysChunk
-
Constructor Details
-
AdaptiveRowSetBuilderRandom
public AdaptiveRowSetBuilderRandom()
-
-
Method Details
-
build
Description copied from interface:RowSetBuilderRandomBuild 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.- Specified by:
buildin interfaceRowSetBuilderRandom- Returns:
- The built RowSet
-
addKey
public void addKey(long rowKey) - Specified by:
addKeyin interfaceRowSetBuilderRandom
-
addRange
public void addRange(long firstRowKey, long lastRowKey) - Specified by:
addRangein interfaceRowSetBuilderRandom
-
addRowKeysChunk
Description copied from interface:RowSetBuilderRandomAdd the row keys in positions[offset, offset + length)ofchunk, which may be in any order.- Specified by:
addRowKeysChunkin interfaceRowSetBuilderRandom- Parameters:
chunk- the row keysoffset- the position of the first key to addlength- the number of keys to add
-
addOrderedRowKeysChunk
- Specified by:
addOrderedRowKeysChunkin interfaceRowSetBuilderRandom
-
addOrderedRowKeysChunk
- Specified by:
addOrderedRowKeysChunkin interfaceRowSetBuilderRandom
-
addOrderedRowKeysChunk
- Specified by:
addOrderedRowKeysChunkin interfaceRowSetBuilderRandom
-
addRowSet
Description copied from interface:RowSetBuilderRandomAdd every row key inrowSet.- Specified by:
addRowSetin interfaceRowSetBuilderRandom- Parameters:
rowSet- The row set to add
-