IN
- The input type of the operatorOUT
- The output type of the operator@PublicEvolving public interface OneInputStreamOperator<IN,OUT> extends StreamOperator<OUT>, Input<IN>
AbstractStreamOperator
as a base class if you want to
implement a custom operator.Modifier and Type | Method and Description |
---|---|
default void |
setKeyContextElement(StreamRecord<IN> record)
Set the correct key context before processing the
record . |
close, finish, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
notifyCheckpointAborted, notifyCheckpointComplete
getCurrentKey, setCurrentKey
processElement, processLatencyMarker, processWatermark, processWatermarkStatus
default void setKeyContextElement(StreamRecord<IN> record) throws Exception
Input
record
. Used for example to extract
key from the record
and pass that key to the state backends. This method is
guaranteed to not be called concurrently with other methods of the operator.setKeyContextElement
in interface Input<IN>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.