@Internal public class KeyedProcessOperator<K,IN,OUT> extends AbstractUdfStreamOperator<OUT,KeyedProcessFunction<K,IN,OUT>> implements OneInputStreamOperator<IN,OUT>, Triggerable<K,org.apache.flink.runtime.state.VoidNamespace>
StreamOperator for executing KeyedProcessFunctions.userFunctionchainingStrategy, config, latencyStats, LOG, metrics, output, processingTimeService| Constructor and Description |
|---|
KeyedProcessOperator(KeyedProcessFunction<K,IN,OUT> function) |
| Modifier and Type | Method and Description |
|---|---|
void |
onEventTime(InternalTimer<K,org.apache.flink.runtime.state.VoidNamespace> timer)
Invoked when an event-time timer fires.
|
void |
onProcessingTime(InternalTimer<K,org.apache.flink.runtime.state.VoidNamespace> timer)
Invoked when a processing-time timer fires.
|
void |
open()
This method is called immediately before any elements are processed, it should contain the
operator's initialization logic, e.g.
|
void |
processElement(StreamRecord<IN> element)
Processes one element that arrived on this input of the
MultipleInputStreamOperator. |
close, dispose, getUserFunction, getUserFunctionParameters, initializeState, notifyCheckpointAborted, notifyCheckpointComplete, setOutputType, setup, snapshotStategetChainingStrategy, getContainingTask, getCurrentKey, getExecutionConfig, getInternalTimerService, getKeyedStateBackend, getKeyedStateStore, getMetricGroup, getOperatorConfig, getOperatorID, getOperatorName, getOperatorStateBackend, getOrCreateKeyedState, getPartitionedState, getPartitionedState, getProcessingTimeService, getRuntimeContext, getTimeServiceManager, getUserCodeClassloader, initializeState, isUsingCustomRawKeyedState, prepareSnapshotPreBarrier, processLatencyMarker, processLatencyMarker1, processLatencyMarker2, processWatermark, processWatermark1, processWatermark2, reportOrForwardLatencyMarker, setChainingStrategy, setCurrentKey, setKeyContextElement1, setKeyContextElement2, setProcessingTimeService, snapshotStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetKeyContextElementclose, dispose, getMetricGroup, getOperatorID, initializeState, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprocessLatencyMarker, processWatermarkpublic KeyedProcessOperator(KeyedProcessFunction<K,IN,OUT> function)
public void open()
throws Exception
AbstractStreamOperatorThe default implementation does nothing.
open in interface StreamOperator<OUT>open in class AbstractUdfStreamOperator<OUT,KeyedProcessFunction<K,IN,OUT>>Exception - An exception in this method causes the operator to fail.public void onEventTime(InternalTimer<K,org.apache.flink.runtime.state.VoidNamespace> timer) throws Exception
TriggerableonEventTime in interface Triggerable<K,org.apache.flink.runtime.state.VoidNamespace>Exceptionpublic void onProcessingTime(InternalTimer<K,org.apache.flink.runtime.state.VoidNamespace> timer) throws Exception
TriggerableonProcessingTime in interface Triggerable<K,org.apache.flink.runtime.state.VoidNamespace>Exceptionpublic void processElement(StreamRecord<IN> element) throws Exception
InputMultipleInputStreamOperator.
This method is guaranteed to not be called concurrently with other methods of the operator.processElement in interface Input<IN>ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.