Interface AsyncKeyOrderedProcessing

    • Method Detail

      • isAsyncKeyOrderedProcessingEnabled

        boolean isAsyncKeyOrderedProcessingEnabled()
        Get if the async state processing is enabled for this input/operator.
        Returns:
        ture if async state processing is enabled.
      • getRecordProcessor

        <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,​Exception> getRecordProcessor​(int inputId)
        Get the record processor that could process record from input, which is the only entry for async processing.
        Parameters:
        inputId - the input identifier, start from 1. Borrow the design from org.apache.flink.streaming.api.operators.AbstractInput#inputId. This is only relevant if there is multiple inputs for the instance.
      • makeRecordProcessor

        static <T> org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,​Exception> makeRecordProcessor​(AsyncKeyOrderedProcessingOperator asyncOperator,
                                                                                                                        org.apache.flink.api.java.functions.KeySelector<T,​?> keySelector,
                                                                                                                        org.apache.flink.util.function.ThrowingConsumer<StreamRecord<T>,​Exception> processor)
        Static method helper to make a record processor with given infos.
        Parameters:
        asyncOperator - the operator that can process state asynchronously.
        keySelector - the key selector.
        processor - the record processing logic.
        Returns:
        the built record processor that can returned by getRecordProcessor(int).