Package io.deephaven.engine.rowset
Class RowSequenceFactory
java.lang.Object
io.deephaven.engine.rowset.RowSequenceFactory
Helper methods for constructing
RowSequence
instances.-
Field Summary
Modifier and TypeFieldDescriptionstatic final RowSequence
Immutable, re-usable emptyRowSequence
instance.static final RowSequence.Iterator
Immutable, re-usableRowSequence.Iterator
for an emptyRowSequence
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RowSequence
forRange
(long firstRowKey, long lastRowKey) Create and return a newRowSequence
object from the supplied closed range.static RowSequence
Create and return a newRowSequence
object from the provided WritableLongChunk.static RowSequence
Create and return a newRowSequence
object from the provided WritableLongChunk.static RowSequence
Wrap a LongChunk as anRowSequence
.static RowSequence
wrapRowKeysChunkAsRowSequence
(LongChunk<OrderedRowKeys> longChunk) Wrap a LongChunk as anRowSequence
.
-
Field Details
-
EMPTY
Immutable, re-usable emptyRowSequence
instance. -
EMPTY_ITERATOR
Immutable, re-usableRowSequence.Iterator
for an emptyRowSequence
.
-
-
Constructor Details
-
RowSequenceFactory
public RowSequenceFactory()
-
-
Method Details
-
wrapRowKeysChunkAsRowSequence
Wrap a LongChunk as anRowSequence
.- Parameters:
longChunk
- Achunk
to wrap as a newRowSequence
object.- Returns:
- A new
RowSequence
object, who does not own the passed chunk.
-
wrapKeyRangesChunkAsRowSequence
Wrap a LongChunk as anRowSequence
.- Parameters:
longChunk
- Achunk
to wrap as a newRowSequence
object.- Returns:
- A new
RowSequence
object, who does not own the passed chunk.
-
takeRowKeysChunkAndMakeRowSequence
public static RowSequence takeRowKeysChunkAndMakeRowSequence(WritableLongChunk<OrderedRowKeys> longChunk) Create and return a newRowSequence
object from the provided WritableLongChunk.- Parameters:
longChunk
- The inputchunk
. The returned object will take ownership of this chunk.- Returns:
- A new
RowSequence
object, who owns the passed chunk.
-
takeKeyRangesChunkAndMakeRowSequence
public static RowSequence takeKeyRangesChunkAndMakeRowSequence(WritableLongChunk<OrderedRowKeyRanges> longChunk) Create and return a newRowSequence
object from the provided WritableLongChunk.- Parameters:
longChunk
- The inputchunk
. The returned object will take ownership of this chunk.- Returns:
- A new
RowSequence
object, who owns the passed chunk.
-
forRange
Create and return a newRowSequence
object from the supplied closed range.- Parameters:
firstRowKey
- The first row key (inclusive) in the rangelastRowKey
- The last row key (inclusive) in the range- Returns:
- A new
RowSequence
object covering the requested range of row keys
-