Class RocksQueueIterator
java.lang.Object
org.apache.flink.state.rocksdb.iterator.RocksQueueIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,SingleStateIterator
An iterator over heap timers that produces rocks compatible binary format.
-
Constructor Summary
ConstructorsConstructorDescriptionRocksQueueIterator(org.apache.flink.runtime.state.heap.HeapPriorityQueueStateSnapshot<?> queuesSnapshot, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, int keyGroupPrefixBytes, int kvStateId) -
Method Summary
-
Constructor Details
-
RocksQueueIterator
public RocksQueueIterator(org.apache.flink.runtime.state.heap.HeapPriorityQueueStateSnapshot<?> queuesSnapshot, org.apache.flink.runtime.state.KeyGroupRange keyGroupRange, int keyGroupPrefixBytes, int kvStateId)
-
-
Method Details
-
next
public void next()- Specified by:
nextin interfaceSingleStateIterator
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceSingleStateIterator
-
key
public byte[] key()- Specified by:
keyin interfaceSingleStateIterator
-
value
public byte[] value()- Specified by:
valuein interfaceSingleStateIterator
-
getKvStateId
public int getKvStateId()- Specified by:
getKvStateIdin interfaceSingleStateIterator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSingleStateIterator
-