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 TypeMethodDescriptionvoidappendKey(long rowKey) default voiddefault voiddefault voiddefault voidappendOrderedRowKeysChunk(LongChunk<OrderedRowKeys> chunk, int offset, int length) voidappendRange(long rangeFirstRowKey, long rangeLastRowKey) default voiddefault voidappendRowSequence(RowSequence rowSequence) Appends aRowSequenceto this builder.default voidappendRowSequenceWithOffset(RowSequence rowSequence, long offset) Appends aRowSequenceshifted by the provided offset to this builder.build()default voidsetDomain(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_KEYif not knownmaxRowKey- The maximum row key to be provided, orRowSequence.NULL_ROW_KEYif not known
-
build
WritableRowSet build() -
appendKey
void appendKey(long rowKey) -
appendRange
void appendRange(long rangeFirstRowKey, long rangeLastRowKey) -
appendKeys
-
appendOrderedRowKeysChunk
-
appendOrderedRowKeysChunk
-
appendRanges
-
appendOrderedRowKeyRangesChunk
-
appendRowSequence
Appends aRowSequenceto this builder.- Parameters:
rowSequence- TheRowSequenceto append
-
appendRowSequenceWithOffset
Appends aRowSequenceshifted by the provided offset to this builder.- Parameters:
rowSequence- TheRowSequenceto appendoffset- An offset to apply to every range in the RowSet
-