Class HeapKeyValueStateIterator

java.lang.Object
org.apache.flink.runtime.state.heap.HeapKeyValueStateIterator
All Implemented Interfaces:
AutoCloseable, KeyValueStateIterator

@Internal @NotThreadSafe public final class HeapKeyValueStateIterator extends Object implements KeyValueStateIterator
A KeyValueStateIterator over Heap backend snapshot resources.
  • Constructor Summary

    Constructors
    Constructor
    Description
    HeapKeyValueStateIterator(KeyGroupRange keyGroupRange, org.apache.flink.api.common.typeutils.TypeSerializer<?> keySerializer, int totalKeyGroups, Map<org.apache.flink.runtime.state.heap.StateUID,Integer> stateNamesToId, Map<org.apache.flink.runtime.state.heap.StateUID,StateSnapshot> stateSnapshots)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    Indicates if current key starts a new key-group, i.e. belong to a different key-group than it's predecessor.
    boolean
    Indicates if current key starts a new k/v-state, i.e. belong to a different k/v-state than it's predecessor.
    boolean
    Check if the iterator is still valid.
    byte[]
    key()
     
    int
    Returns the key-group for the current key.
    int
    Returns the Id of the K/V state to which the current key belongs.
    void
    Advances the iterator.
    byte[]
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait