Package io.deephaven.engine.table.impl
Class PrecomputedRowSetBuilderRandom
java.lang.Object
io.deephaven.engine.table.impl.PrecomputedRowSetBuilderRandom
- All Implemented Interfaces:
RowSetBuilderRandom
This is a niche class that allows an existing
rowset to masquerade as a
RowSetBuilderRandom for the sake of efficient processing.
General usage would embed this in a collection with actual RowSetBuilderRandom and process all items
similarly. See
PartitionByChunkedOperator.appendShifts(io.deephaven.chunk.LongChunk, io.deephaven.chunk.LongChunk, int, int, long)
and PartitionByChunkedOperator.extractAndClearBuilderRandom(io.deephaven.chunk.WritableObjectChunk, int) for
an example.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.rowset.RowSetBuilderRandom
RowSetBuilderRandom.Helper -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKey(long rowKey) voidaddRange(long firstRowKey, long lastRowKey) build()Build theWritableRowSetfrom the accumulated row keys.createFromRowSet(@NotNull WritableRowSet rowSet) 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, addOrderedRowKeysChunk, addOrderedRowKeysChunk, addOrderedRowKeysChunk, addRanges, addRowKeysChunk, addRowKeysChunk, addRowKeysChunk, addRowSet
-
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
-
createFromRowSet
public static PrecomputedRowSetBuilderRandom createFromRowSet(@NotNull @NotNull WritableRowSet rowSet)
-