Package io.deephaven.engine.rowset
Class RowSequenceFactory
java.lang.Object
io.deephaven.engine.rowset.RowSequenceFactory
Helper methods for constructing
RowSequence instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RowSequenceImmutable, re-usable emptyRowSequenceinstance.static final RowSequence.IteratorImmutable, re-usableRowSequence.Iteratorfor an emptyRowSequence. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RowSequenceforRange(long firstRowKey, long lastRowKey) Create and return a newRowSequenceobject from the supplied closed range.static RowSequenceCreate and return a newRowSequenceobject from the provided WritableLongChunk.static RowSequenceCreate and return a newRowSequenceobject from the provided WritableLongChunk.static RowSequenceWrap a LongChunk as anRowSequence.static RowSequencewrapRowKeysChunkAsRowSequence(LongChunk<OrderedRowKeys> longChunk) Wrap a LongChunk as anRowSequence.
-
Field Details
-
EMPTY
Immutable, re-usable emptyRowSequenceinstance. -
EMPTY_ITERATOR
Immutable, re-usableRowSequence.Iteratorfor an emptyRowSequence.
-
-
Constructor Details
-
RowSequenceFactory
public RowSequenceFactory()
-
-
Method Details
-
wrapRowKeysChunkAsRowSequence
Wrap a LongChunk as anRowSequence.- Parameters:
longChunk- Achunkto wrap as a newRowSequenceobject.- Returns:
- A new
RowSequenceobject, who does not own the passed chunk.
-
wrapKeyRangesChunkAsRowSequence
Wrap a LongChunk as anRowSequence.- Parameters:
longChunk- Achunkto wrap as a newRowSequenceobject.- Returns:
- A new
RowSequenceobject, who does not own the passed chunk.
-
takeRowKeysChunkAndMakeRowSequence
public static RowSequence takeRowKeysChunkAndMakeRowSequence(WritableLongChunk<OrderedRowKeys> longChunk) Create and return a newRowSequenceobject from the provided WritableLongChunk.- Parameters:
longChunk- The inputchunk. The returned object will take ownership of this chunk.- Returns:
- A new
RowSequenceobject, who owns the passed chunk.
-
takeKeyRangesChunkAndMakeRowSequence
public static RowSequence takeKeyRangesChunkAndMakeRowSequence(WritableLongChunk<OrderedRowKeyRanges> longChunk) Create and return a newRowSequenceobject from the provided WritableLongChunk.- Parameters:
longChunk- The inputchunk. The returned object will take ownership of this chunk.- Returns:
- A new
RowSequenceobject, who owns the passed chunk.
-
forRange
Create and return a newRowSequenceobject 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
RowSequenceobject covering the requested range of row keys
-