Package io.deephaven.engine.rowset.impl
Class RowSequenceAsChunkImpl
java.lang.Object
io.deephaven.engine.rowset.impl.RowSequenceAsChunkImpl
- All Implemented Interfaces:
RowSequence
,LongSizedDataStructure
,SafeCloseable
,AutoCloseable
- Direct Known Subclasses:
RspRowSequence
,ShiftedRowSequence
,SingleRangeRowSequence
,SortedRangesRowSequence
,WritableRowSetImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.rowset.RowSequence
RowSequence.Iterator
-
Field Summary
Fields inherited from interface io.deephaven.engine.rowset.RowSequence
NULL_ROW_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal LongChunk<OrderedRowKeys>
Get aLongChunk
representation of the individual row keys in thisRowSequence
.final LongChunk<OrderedRowKeyRanges>
Get aLongChunk
representation of row key ranges in thisRowSequence
.void
close()
Free any resources associated with this object.protected final void
Close any resources associated with this RowSequenceAsChunkImpl.protected final void
abstract long
Get the last row key in thisRowSequence
.abstract long
protected long
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
asRowSet, fillRowKeyChunk, fillRowKeyRangesChunk, firstRowKey, forAllRowKeyRanges, forAllRowKeys, forEachRowKey, forEachRowKeyRange, getAverageRunLengthEstimate, getRowSequenceByKeyRange, getRowSequenceByPosition, getRowSequenceIterator, isContiguous, isEmpty, size
-
Constructor Details
-
RowSequenceAsChunkImpl
public RowSequenceAsChunkImpl()
-
-
Method Details
-
runsUpperBound
protected long runsUpperBound() -
asRowKeyChunk
Description copied from interface:RowSequence
Get aLongChunk
representation of the individual row keys in thisRowSequence
.- Specified by:
asRowKeyChunk
in interfaceRowSequence
- Returns:
- A
LongChunk
containing the row keys in thisRowSequence
-
asRowKeyRangesChunk
Description copied from interface:RowSequence
Get aLongChunk
representation of row key ranges in thisRowSequence
.- Specified by:
asRowKeyRangesChunk
in interfaceRowSequence
- Returns:
- A
LongChunk
containing the row key ranges in thisRowSequence
-
lastRowKey
public abstract long lastRowKey()Description copied from interface:RowSequence
Get the last row key in thisRowSequence
.- Specified by:
lastRowKey
in interfaceRowSequence
- Returns:
- The last row key, or
RowSequence.NULL_ROW_KEY
if there is none.
-
rangesCountUpperBound
public abstract long rangesCountUpperBound() -
close
@OverridingMethodsMustInvokeSuper public void close()Description copied from interface:RowSequence
Free any resources associated with this object.
Using any
RowSequence
methods afterclose()
is an error and may produce exceptions or undefined results.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRowSequence
- Specified by:
close
in interfaceSafeCloseable
-
closeRowSequenceAsChunkImpl
protected final void closeRowSequenceAsChunkImpl()Close any resources associated with this RowSequenceAsChunkImpl. This is the implementation forclose
, made available for subclasses that have a need to release parent class resources independently of their ownclose
implementation. Most uses should prefer toinvalidate
, instead. -
invalidateRowSequenceAsChunkImpl
protected final void invalidateRowSequenceAsChunkImpl()
-