@Internal public interface AsyncStateProcessingOperator extends AsyncStateProcessing
AsyncStateProcessing, which gives the essential
methods for an operator to perform async state processing.| Modifier and Type | Method and Description |
|---|---|
ElementOrder |
getElementOrder()
Get the
ElementOrder of this operator. |
void |
postProcessElement()
A callback that will be triggered after an element finishes
processElement. |
void |
preserveRecordOrderAndProcess(org.apache.flink.util.function.ThrowingRunnable<Exception> processing)
Check the order of same-key record, and then process the record.
|
<T> void |
setAsyncKeyedContextElement(StreamRecord<T> record,
org.apache.flink.api.java.functions.KeySelector<T,?> keySelector)
Set key context for async state processing.
|
getRecordProcessor, isAsyncStateProcessingEnabled, makeRecordProcessorElementOrder getElementOrder()
ElementOrder of this operator.<T> void setAsyncKeyedContextElement(StreamRecord<T> record, org.apache.flink.api.java.functions.KeySelector<T,?> keySelector) throws Exception
T - the type of the record.record - the record.keySelector - the key selector to select a key from record.Exceptionvoid postProcessElement()
processElement.void preserveRecordOrderAndProcess(org.apache.flink.util.function.ThrowingRunnable<Exception> processing)
getElementOrder() returns ElementOrder.RECORD_ORDER.processing - the record processing logic.Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.