public class RocksStatesPerKeyGroupMergeIterator extends Object implements AutoCloseable
| 构造器和说明 |
|---|
RocksStatesPerKeyGroupMergeIterator(List<org.apache.flink.api.java.tuple.Tuple2<RocksIteratorWrapper,Integer>> kvStateIterators,
int keyGroupPrefixByteCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
isNewKeyGroup()
Indicates if current key starts a new key-group, i.e. belong to a different key-group than it's predecessor.
|
boolean |
isNewKeyValueState()
Indicates if current key starts a new k/v-state, i.e. belong to a different k/v-state than it's predecessor.
|
boolean |
isValid()
Check if the iterator is still valid.
|
byte[] |
key() |
int |
keyGroup() |
int |
kvStateId() |
void |
next()
Advances the iterator.
|
byte[] |
value() |
public RocksStatesPerKeyGroupMergeIterator(List<org.apache.flink.api.java.tuple.Tuple2<RocksIteratorWrapper,Integer>> kvStateIterators, int keyGroupPrefixByteCount)
public void next()
public int keyGroup()
public byte[] key()
public byte[] value()
public int kvStateId()
public boolean isNewKeyValueState()
public boolean isNewKeyGroup()
public boolean isValid()
key(), value(), etc. as well as
next() should only be called if valid returned true. Should be checked after each call to
next() before accessing iterator state.public void close()
close 在接口中 AutoCloseableCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.