Class OrderedKeysToRowSequenceAdapter
java.lang.Object
io.deephaven.enterprise.compatibility.rowset.OrderedKeysToRowSequenceAdapter
- All Implemented Interfaces:
RowSequence,LongSizedDataStructure,SafeCloseable,AutoCloseable
A Mutable adapter for converting
OrderedKeys into a RowSequence. It is the responsibility of the
creator to invoke close() when they are done with it.
This object does not take ownership of the delegate. It is the responsibility of the creator to close the delegate.
-
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
ConstructorsConstructorDescriptionOrderedKeysToRowSequenceAdapter(@Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.utils.OrderedKeys delegate) -
Method Summary
Modifier and TypeMethodDescriptionasRowSet()voidclose()voidfillRowKeyChunk(WritableLongChunk<? super OrderedRowKeys> chunkToFill) voidfillRowKeyRangesChunk(WritableLongChunk<OrderedRowKeyRanges> chunkToFill) longbooleanbooleanlonggetRowSequenceByKeyRange(long startRowKeyInclusive, long endRowKeyInclusive) getRowSequenceByPosition(long startPositionInclusive, long length) booleanbooleanisEmpty()longvoidsetDelegate(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.utils.OrderedKeys delegate) longsize()Methods 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
forAllRowKeyRanges, forAllRowKeys
-
Constructor Details
-
OrderedKeysToRowSequenceAdapter
public OrderedKeysToRowSequenceAdapter() -
OrderedKeysToRowSequenceAdapter
public OrderedKeysToRowSequenceAdapter(@Nullable @Nullable io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.utils.OrderedKeys delegate)
-
-
Method Details
-
setDelegate
public void setDelegate(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.utils.OrderedKeys delegate) -
getRowSequenceIterator
- Specified by:
getRowSequenceIteratorin interfaceRowSequence
-
getRowSequenceByPosition
- Specified by:
getRowSequenceByPositionin interfaceRowSequence
-
getRowSequenceByKeyRange
- Specified by:
getRowSequenceByKeyRangein interfaceRowSequence
-
asRowSet
- Specified by:
asRowSetin interfaceRowSequence
-
asRowKeyChunk
- Specified by:
asRowKeyChunkin interfaceRowSequence
-
asRowKeyRangesChunk
- Specified by:
asRowKeyRangesChunkin interfaceRowSequence
-
fillRowKeyChunk
- Specified by:
fillRowKeyChunkin interfaceRowSequence
-
fillRowKeyRangesChunk
- Specified by:
fillRowKeyRangesChunkin interfaceRowSequence
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceRowSequence
-
firstRowKey
public long firstRowKey()- Specified by:
firstRowKeyin interfaceRowSequence
-
lastRowKey
public long lastRowKey()- Specified by:
lastRowKeyin interfaceRowSequence
-
size
public long size()- Specified by:
sizein interfaceLongSizedDataStructure- Specified by:
sizein interfaceRowSequence
-
getAverageRunLengthEstimate
public long getAverageRunLengthEstimate()- Specified by:
getAverageRunLengthEstimatein interfaceRowSequence
-
forEachRowKey
- Specified by:
forEachRowKeyin interfaceRowSequence
-
forEachRowKeyRange
- Specified by:
forEachRowKeyRangein interfaceRowSequence
-
isContiguous
public boolean isContiguous()- Specified by:
isContiguousin interfaceRowSequence
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRowSequence- Specified by:
closein interfaceSafeCloseable
-