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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasRowSet()Get aRowSetrepresentation of thisRowSequence.copy()voidfillRowKeyChunk(WritableLongChunk<? super OrderedRowKeys> chunkToFill) Fill the suppliedWritableLongChunkwith individual row keys from thisRowSequence.voidfillRowKeyRangesChunk(WritableLongChunk<OrderedRowKeyRanges> chunkToFill) Fill the suppliedWritableLongChunkwith row key ranges from thisRowSequence.longGet the first row key in thisRowSequence.booleanisEmpty()True if the size of thisRowSequenceis zero.longGet the last row key in thisRowSequence.longrangeEnd()longlongprotected voidreset(long rangeStart, long rangeEnd) longsize()Get the number of row keys in thisRowSequence.Methods inherited from class io.deephaven.engine.rowset.impl.RowSequenceAsChunkImpl
asRowKeyChunk, asRowKeyRangesChunk, close, closeRowSequenceAsChunkImpl, invalidateRowSequenceAsChunkImpl, runsUpperBoundMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.util.datastructures.LongSizedDataStructure
intSize, intSizeMethods inherited from interface io.deephaven.engine.rowset.RowSequence
asRowKeyChunk, asRowKeyRangesChunk, close, forAllRowKeyRanges, forAllRowKeysMethods 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:
rangeStartin interfaceSingleRangeMixin
-
rangeEnd
public long rangeEnd()- Specified by:
rangeEndin interfaceSingleRangeMixin
-
reset
protected void reset(long rangeStart, long rangeEnd) -
copy
-
isEmpty
public boolean isEmpty()Description copied from interface:RowSequenceTrue if the size of thisRowSequenceis zero.- Specified by:
isEmptyin interfaceRowSequence- Returns:
- True if there are no elements in this
RowSequence.
-
lastRowKey
public long lastRowKey()Description copied from interface:RowSequenceGet the last row key in thisRowSequence.- Specified by:
lastRowKeyin interfaceRowSequence- Specified by:
lastRowKeyin classRowSequenceAsChunkImpl- Returns:
- The last row key, or
RowSequence.NULL_ROW_KEYif there is none.
-
firstRowKey
public long firstRowKey()Description copied from interface:RowSequenceGet the first row key in thisRowSequence.- Specified by:
firstRowKeyin interfaceRowSequence- Returns:
- The first row key, or
RowSequence.NULL_ROW_KEYif there is none.
-
size
public long size()Description copied from interface:RowSequenceGet the number of row keys in thisRowSequence.- Specified by:
sizein interfaceLongSizedDataStructure- Specified by:
sizein interfaceRowSequence- Specified by:
sizein interfaceSingleRangeMixin- Returns:
- The size, in [0,
Long.MAX_VALUE]
-
rangesCountUpperBound
public long rangesCountUpperBound()- Specified by:
rangesCountUpperBoundin interfaceSingleRangeMixin- Specified by:
rangesCountUpperBoundin classRowSequenceAsChunkImpl
-
asRowSet
Description copied from interface:RowSequenceGet aRowSetrepresentation of thisRowSequence.- Specified by:
asRowSetin interfaceRowSequence- Returns:
- A
RowSetrepresentation for the same row keys in the same order
-
fillRowKeyChunk
Description copied from interface:RowSequenceFill the supplied
WritableLongChunkwith individual row keys from thisRowSequence.The chunk's capacity is assumed to be big enough.
- Specified by:
fillRowKeyChunkin interfaceRowSequence- Parameters:
chunkToFill- A chunk to fill with individual row keys
-
fillRowKeyRangesChunk
Description copied from interface:RowSequenceFill the supplied
WritableLongChunkwith row key ranges from thisRowSequence.The chunk's capacity is assumed to be big enough.
- Specified by:
fillRowKeyRangesChunkin interfaceRowSequence- Parameters:
chunkToFill- A chunk to fill with row key ranges
-