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, getOperatorAttributes, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprocessElement, processLatencyMarker, processRecordAttributes, processWatermark, processWatermarkStatusdefault void setKeyContextElement(StreamRecord<IN> record) throws Exception
Inputrecord. 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>ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.