Class KeyedStateReaderFunction<K,​OUT>

    • Constructor Detail

      • KeyedStateReaderFunction

        public KeyedStateReaderFunction()
    • Method Detail

      • readKey

        public abstract void readKey​(K key,
                                     KeyedStateReaderFunction.Context ctx,
                                     Collector<OUT> out)
                              throws Exception
        Process one key from the restored state backend.

        This function can read partitioned state from the restored state backend and output zero or more elements using the Collector parameter.

        Parameters:
        key - The input value.
        out - The collector for returning result values.
        Throws:
        Exception - This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.