Interface KeyedStateFunction<K,S extends org.apache.flink.api.common.state.State>

Type Parameters:
K - The type of key.
S - The type of state.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface KeyedStateFunction<K,S extends org.apache.flink.api.common.state.State>
A function to be applied to all keyed states.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    process(K key, S state)
    The actual method to be applied on each of the states.
  • Method Details

    • process

      void process(K key, S state) throws Exception
      The actual method to be applied on each of the states.
      Parameters:
      key - the key whose state is being processed.
      state - the state associated with the aforementioned key.
      Throws:
      Exception