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>
Input interface used in MultipleInputStreamOperator. Most likely you don't want
to implement this interface on your own. Instead you can use AbstractInput and AbstractStreamOperatorV2 to implement MultipleInputStreamOperator, or just AbstractStreamOperatorV2 to implement OneInputStreamOperator.-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessElement(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 Details
-
processElement
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
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
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:
-
processLatencyMarker
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:
-
setKeyContextElement
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
Processes aWatermarkthat arrived at this input, wrapped in aWatermarkEvent.- Throws:
Exception
-