Class AsyncStateKeyContext


  • public class AsyncStateKeyContext
    extends Object
    Context to switch current key in async state backend.
    • Constructor Detail

      • AsyncStateKeyContext

        public AsyncStateKeyContext​(org.apache.flink.runtime.asyncprocessing.operators.AbstractAsyncStateStreamOperator<org.apache.flink.table.data.RowData> asyncStateProcessingOperator,
                                    org.apache.flink.runtime.state.AsyncKeyedStateBackend<?> asyncKeyedStateBackend)
    • Method Detail

      • asyncProcessWithKey

        public void asyncProcessWithKey​(org.apache.flink.table.data.RowData key,
                                        org.apache.flink.util.function.ThrowingRunnable<Exception> processing)
      • getAsyncKeyedStateBackend

        public org.apache.flink.runtime.state.AsyncKeyedStateBackend<?> getAsyncKeyedStateBackend()
      • getCurrentKey

        public org.apache.flink.table.data.RowData getCurrentKey()