Package io.deephaven.engine.rowset
Interface RowSetBuilderSequential
- All Superinterfaces:
LongRangeConsumer
- All Known Implementing Classes:
BasicRowSetBuilderSequential
Builder interface for
RowSet
construction in strict sequential order.-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendKey
(long rowKey) default void
default void
default void
default void
appendOrderedRowKeysChunk
(LongChunk<OrderedRowKeys> chunk, int offset, int length) void
appendRange
(long rangeFirstRowKey, long rangeLastRowKey) default void
default void
appendRowSequence
(RowSequence rowSequence) Appends aRowSequence
to this builder.default void
appendRowSequenceWithOffset
(RowSequence rowSequence, long offset) Appends aRowSequence
shifted by the provided offset to this builder.build()
default void
setDomain
(long minRowKey, long maxRowKey) Hint to call, but if called, (a) should be called before providing any values, and (b) no value should be provided outside the domain.Methods inherited from interface io.deephaven.util.datastructures.LongRangeConsumer
accept
-
Method Details
-
setDomain
default void setDomain(long minRowKey, long maxRowKey) Hint to call, but if called, (a) should be called before providing any values, and (b) no value should be provided outside the domain. Implementations may be able to use this information to improve memory utilization. Either of the arguments may be given asRowSequence.NULL_ROW_KEY
, indicating that the respective value is not known.- Parameters:
minRowKey
- The minimum row key to be provided, orRowSequence.NULL_ROW_KEY
if not knownmaxRowKey
- The maximum row key to be provided, orRowSequence.NULL_ROW_KEY
if not known
-
build
WritableRowSet build() -
appendKey
void appendKey(long rowKey) -
appendRange
void appendRange(long rangeFirstRowKey, long rangeLastRowKey) -
appendKeys
-
appendOrderedRowKeysChunk
-
appendOrderedRowKeysChunk
-
appendRanges
-
appendOrderedRowKeyRangesChunk
-
appendRowSequence
Appends aRowSequence
to this builder.- Parameters:
rowSequence
- TheRowSequence
to append
-
appendRowSequenceWithOffset
Appends aRowSequence
shifted by the provided offset to this builder.- Parameters:
rowSequence
- TheRowSequence
to appendoffset
- An offset to apply to every range in the RowSet
-