@Internal public interface AsyncStateProcessing
Modifier and Type | Method and Description |
---|---|
<T> 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.
|
boolean |
isAsyncStateProcessingEnabled()
Get if the async state processing is enabled for this input/operator.
|
static <T> ThrowingConsumer<StreamRecord<T>,Exception> |
makeRecordProcessor(AsyncStateProcessingOperator asyncOperator,
KeySelector<T,?> keySelector,
ThrowingConsumer<StreamRecord<T>,Exception> processor)
Static method helper to make a record processor with given infos.
|
boolean isAsyncStateProcessingEnabled()
<T> ThrowingConsumer<StreamRecord<T>,Exception> getRecordProcessor(int inputId)
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.static <T> ThrowingConsumer<StreamRecord<T>,Exception> makeRecordProcessor(AsyncStateProcessingOperator asyncOperator, KeySelector<T,?> keySelector, ThrowingConsumer<StreamRecord<T>,Exception> processor)
asyncOperator
- the operator that can process state asynchronously.keySelector
- the key selector.processor
- the record processing logic.getRecordProcessor(int)
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.