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()
void
close()
void
fillRowKeyChunk
(WritableLongChunk<? super OrderedRowKeys> chunkToFill) void
fillRowKeyRangesChunk
(WritableLongChunk<OrderedRowKeyRanges> chunkToFill) long
boolean
boolean
long
getRowSequenceByKeyRange
(long startRowKeyInclusive, long endRowKeyInclusive) getRowSequenceByPosition
(long startPositionInclusive, long length) boolean
boolean
isEmpty()
long
void
setDelegate
(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.utils.OrderedKeys delegate) long
size()
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
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:
getRowSequenceIterator
in interfaceRowSequence
-
getRowSequenceByPosition
- Specified by:
getRowSequenceByPosition
in interfaceRowSequence
-
getRowSequenceByKeyRange
- Specified by:
getRowSequenceByKeyRange
in interfaceRowSequence
-
asRowSet
- Specified by:
asRowSet
in interfaceRowSequence
-
asRowKeyChunk
- Specified by:
asRowKeyChunk
in interfaceRowSequence
-
asRowKeyRangesChunk
- Specified by:
asRowKeyRangesChunk
in interfaceRowSequence
-
fillRowKeyChunk
- Specified by:
fillRowKeyChunk
in interfaceRowSequence
-
fillRowKeyRangesChunk
- Specified by:
fillRowKeyRangesChunk
in interfaceRowSequence
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceRowSequence
-
firstRowKey
public long firstRowKey()- Specified by:
firstRowKey
in interfaceRowSequence
-
lastRowKey
public long lastRowKey()- Specified by:
lastRowKey
in interfaceRowSequence
-
size
public long size()- Specified by:
size
in interfaceLongSizedDataStructure
- Specified by:
size
in interfaceRowSequence
-
getAverageRunLengthEstimate
public long getAverageRunLengthEstimate()- Specified by:
getAverageRunLengthEstimate
in interfaceRowSequence
-
forEachRowKey
- Specified by:
forEachRowKey
in interfaceRowSequence
-
forEachRowKeyRange
- Specified by:
forEachRowKeyRange
in interfaceRowSequence
-
isContiguous
public boolean isContiguous()- Specified by:
isContiguous
in interfaceRowSequence
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRowSequence
- Specified by:
close
in interfaceSafeCloseable
-