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.| 限定符和类型 | 方法和说明 |
|---|---|
default void |
setKeyContextElement(StreamRecord<IN> record)
Set the correct key context before processing the
record. |
close, finish, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyprocessElement, processLatencyMarker, 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 在接口中 Input<IN>ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.