Interface Input<IN>
-
- All Known Subinterfaces:
OneInputStreamOperator<IN,OUT>
- All Known Implementing Classes:
AsyncEvictingWindowOperator,AsyncKeyedProcessOperator,AsyncStreamFlatMap,AsyncWindowOperator,BatchGroupedReduceOperator,CacheTransformationTranslator.IdentityStreamOperator,CacheTransformationTranslator.NoOpStreamOperator,CollectSinkOperator,ContinuousFileReaderOperator,EvictingWindowOperator,FinishedOnRestoreInput,GlobalCommitterOperator,KeyedProcessOperator,KeyedSortPartitionOperator,LegacyKeyedProcessOperator,MapPartitionOperator,PartitionAggregateOperator,PartitionReduceOperator,ProcessOperator,QueryableAppendingStateOperator,QueryableValueStateOperator,SortPartitionOperator,StreamFilter,StreamFlatMap,StreamGroupedReduceAsyncStateOperator,StreamGroupedReduceOperator,StreamMap,StreamProject,StreamSink,TimestampsAndWatermarksOperator,WindowOperator
@PublicEvolving public interface Input<IN>Inputinterface used inMultipleInputStreamOperator. Most likely you don't want to implement this interface on your own. Instead you can useAbstractInputandAbstractStreamOperatorV2to implementMultipleInputStreamOperator, or justAbstractStreamOperatorV2to implementOneInputStreamOperator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidprocessElement(StreamRecord<IN> element)Processes one element that arrived on this input of theMultipleInputStreamOperator.voidprocessLatencyMarker(LatencyMarker latencyMarker)Processes aLatencyMarkerthat arrived on the first input of this two-input operator.default voidprocessRecordAttributes(RecordAttributes recordAttributes)Processes aRecordAttributesthat arrived at this input.default voidprocessWatermark(WatermarkEvent watermark)Processes aWatermarkthat arrived at this input, wrapped in aWatermarkEvent.voidprocessWatermark(Watermark mark)Processes aWatermarkthat arrived on the first input of this two-input operator.voidprocessWatermarkStatus(WatermarkStatus watermarkStatus)Processes aWatermarkStatusthat arrived on this input of theMultipleInputStreamOperator.voidsetKeyContextElement(StreamRecord<IN> record)Set the correct key context before processing therecord.
-
-
-
Method Detail
-
processElement
void processElement(StreamRecord<IN> element) throws Exception
Processes one element that arrived on this input of theMultipleInputStreamOperator. This method is guaranteed to not be called concurrently with other methods of the operator.- Throws:
Exception
-
processWatermark
void processWatermark(Watermark mark) throws Exception
Processes aWatermarkthat arrived on the first input of this two-input operator. This method is guaranteed to not be called concurrently with other methods of the operator.
-
processWatermarkStatus
void processWatermarkStatus(WatermarkStatus watermarkStatus) throws Exception
Processes aWatermarkStatusthat arrived on this input of theMultipleInputStreamOperator. This method is guaranteed to not be called concurrently with other methods of the operator.- Throws:
Exception- See Also:
WatermarkStatus
-
processLatencyMarker
void processLatencyMarker(LatencyMarker latencyMarker) throws Exception
Processes aLatencyMarkerthat arrived on the first input of this two-input operator. This method is guaranteed to not be called concurrently with other methods of the operator.- Throws:
Exception- See Also:
LatencyMarker
-
setKeyContextElement
void setKeyContextElement(StreamRecord<IN> record) throws Exception
Set the correct key context before processing therecord. Used for example to extract key from therecordand pass that key to the state backends. This method is guaranteed to not be called concurrently with other methods of the operator.- Throws:
Exception
-
processRecordAttributes
@Experimental default void processRecordAttributes(RecordAttributes recordAttributes) throws Exception
Processes aRecordAttributesthat arrived at this input. This method is guaranteed to not be called concurrently with other methods of the operator.- Throws:
Exception
-
processWatermark
@Experimental default void processWatermark(WatermarkEvent watermark) throws Exception
Processes aWatermarkthat arrived at this input, wrapped in aWatermarkEvent.- Throws:
Exception
-
-