public class RocksStatesPerKeyGroupMergeIterator extends Object implements org.apache.flink.runtime.state.KeyValueStateIterator
| Constructor and Description |
|---|
RocksStatesPerKeyGroupMergeIterator(org.apache.flink.core.fs.CloseableRegistry closeableRegistry,
List<org.apache.flink.api.java.tuple.Tuple2<RocksIteratorWrapper,Integer>> kvStateIterators,
List<SingleStateIterator> heapPriorityQueueIterators,
int keyGroupPrefixByteCount)
Creates a new
RocksStatesPerKeyGroupMergeIterator. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isNewKeyGroup() |
boolean |
isNewKeyValueState() |
boolean |
isValid() |
byte[] |
key() |
int |
keyGroup() |
int |
kvStateId() |
void |
next() |
byte[] |
value() |
public RocksStatesPerKeyGroupMergeIterator(org.apache.flink.core.fs.CloseableRegistry closeableRegistry,
List<org.apache.flink.api.java.tuple.Tuple2<RocksIteratorWrapper,Integer>> kvStateIterators,
List<SingleStateIterator> heapPriorityQueueIterators,
int keyGroupPrefixByteCount)
throws IOException
RocksStatesPerKeyGroupMergeIterator. The iterator takes ownership of
passed in resources, such as the ReadOptions, and becomes responsible for closing
them.IOExceptionpublic void next()
next in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic int keyGroup()
keyGroup in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic byte[] key()
key in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic byte[] value()
value in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic int kvStateId()
kvStateId in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic boolean isNewKeyValueState()
isNewKeyValueState in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic boolean isNewKeyGroup()
isNewKeyGroup in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic boolean isValid()
isValid in interface org.apache.flink.runtime.state.KeyValueStateIteratorpublic void close()
close in interface AutoCloseableclose in interface org.apache.flink.runtime.state.KeyValueStateIteratorCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.