IN - The input type of the operatorOUT - The output type of the operator@PublicEvolving public interface OneInputStreamOperator<IN,OUT> extends StreamOperator<OUT>
AbstractStreamOperator as a base class if you want to
implement a custom operator.| 限定符和类型 | 方法和说明 |
|---|---|
void |
processElement(StreamRecord<IN> element)
Processes one element that arrived at this operator.
|
void |
processLatencyMarker(LatencyMarker latencyMarker) |
void |
processWatermark(Watermark mark)
Processes a
Watermark. |
close, dispose, getMetricGroup, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotStatenotifyCheckpointAborted, notifyCheckpointCompletegetCurrentKey, setCurrentKeyvoid processElement(StreamRecord<IN> element) throws Exception
Exceptionvoid processWatermark(Watermark mark) throws Exception
Watermark. This method is guaranteed to not be called concurrently with
other methods of the operator.void processLatencyMarker(LatencyMarker latencyMarker) throws Exception
ExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.