Class SingleRangeRowSequence
java.lang.Object
io.deephaven.engine.rowset.impl.RowSequenceAsChunkImpl
io.deephaven.engine.rowset.impl.singlerange.SingleRangeRowSequence
- All Implemented Interfaces:
SingleRangeMixin
,RowSequence
,LongSizedDataStructure
,SafeCloseable
,AutoCloseable
-
Field Summary
Fields inherited from interface io.deephaven.engine.rowset.RowSequence
NULL_ROW_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasRowSet()
Get aRowSet
representation of thisRowSequence
.copy()
void
fillRowKeyChunk
(WritableLongChunk<? super OrderedRowKeys> chunkToFill) Fill the suppliedWritableLongChunk
with individual row keys from thisRowSequence
.void
fillRowKeyRangesChunk
(WritableLongChunk<OrderedRowKeyRanges> chunkToFill) Fill the suppliedWritableLongChunk
with row key ranges from thisRowSequence
.long
Get the first row key in thisRowSequence
.boolean
isEmpty()
True if the size of thisRowSequence
is zero.long
Get the last row key in thisRowSequence
.long
rangeEnd()
long
long
protected void
reset
(long rangeStart, long rangeEnd) long
size()
Get the number of row keys in thisRowSequence
.Methods inherited from class io.deephaven.engine.rowset.impl.RowSequenceAsChunkImpl
asRowKeyChunk, asRowKeyRangesChunk, close, closeRowSequenceAsChunkImpl, invalidateRowSequenceAsChunkImpl, runsUpperBound
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.util.datastructures.LongSizedDataStructure
intSize, intSize
Methods inherited from interface io.deephaven.engine.rowset.RowSequence
asRowKeyChunk, asRowKeyRangesChunk, close, forAllRowKeyRanges, forAllRowKeys
Methods inherited from interface io.deephaven.engine.rowset.impl.singlerange.SingleRangeMixin
forEachRowKey, forEachRowKeyRange, getAverageRunLengthEstimate, getRowSequenceByKeyRange, getRowSequenceByPosition, getRowSequenceIterator, isContiguous
-
Constructor Details
-
SingleRangeRowSequence
public SingleRangeRowSequence(long rangeStart, long rangeEnd)
-
-
Method Details
-
rangeStart
public long rangeStart()- Specified by:
rangeStart
in interfaceSingleRangeMixin
-
rangeEnd
public long rangeEnd()- Specified by:
rangeEnd
in interfaceSingleRangeMixin
-
reset
protected void reset(long rangeStart, long rangeEnd) -
copy
-
isEmpty
public boolean isEmpty()Description copied from interface:RowSequence
True if the size of thisRowSequence
is zero.- Specified by:
isEmpty
in interfaceRowSequence
- Returns:
- True if there are no elements in this
RowSequence
.
-
lastRowKey
public long lastRowKey()Description copied from interface:RowSequence
Get the last row key in thisRowSequence
.- Specified by:
lastRowKey
in interfaceRowSequence
- Specified by:
lastRowKey
in classRowSequenceAsChunkImpl
- Returns:
- The last row key, or
RowSequence.NULL_ROW_KEY
if there is none.
-
firstRowKey
public long firstRowKey()Description copied from interface:RowSequence
Get the first row key in thisRowSequence
.- Specified by:
firstRowKey
in interfaceRowSequence
- Returns:
- The first row key, or
RowSequence.NULL_ROW_KEY
if there is none.
-
size
public long size()Description copied from interface:RowSequence
Get the number of row keys in thisRowSequence
.- Specified by:
size
in interfaceLongSizedDataStructure
- Specified by:
size
in interfaceRowSequence
- Specified by:
size
in interfaceSingleRangeMixin
- Returns:
- The size, in [0,
Long.MAX_VALUE
]
-
rangesCountUpperBound
public long rangesCountUpperBound()- Specified by:
rangesCountUpperBound
in interfaceSingleRangeMixin
- Specified by:
rangesCountUpperBound
in classRowSequenceAsChunkImpl
-
asRowSet
Description copied from interface:RowSequence
Get aRowSet
representation of thisRowSequence
.- Specified by:
asRowSet
in interfaceRowSequence
- Returns:
- A
RowSet
representation for the same row keys in the same order
-
fillRowKeyChunk
Description copied from interface:RowSequence
Fill the supplied
WritableLongChunk
with individual row keys from thisRowSequence
.The chunk's capacity is assumed to be big enough.
- Specified by:
fillRowKeyChunk
in interfaceRowSequence
- Parameters:
chunkToFill
- A chunk to fill with individual row keys
-
fillRowKeyRangesChunk
Description copied from interface:RowSequence
Fill the supplied
WritableLongChunk
with row key ranges from thisRowSequence
.The chunk's capacity is assumed to be big enough.
- Specified by:
fillRowKeyRangesChunk
in interfaceRowSequence
- Parameters:
chunkToFill
- A chunk to fill with row key ranges
-