Interface OneInputStreamOperator<IN,OUT>
- Type Parameters:
IN- The input type of the operatorOUT- The output type of the operator
- All Superinterfaces:
org.apache.flink.api.common.state.CheckpointListener,Input<IN>,KeyContext,Serializable,StreamOperator<OUT>
- All Known Implementing Classes:
AsyncEvictingWindowOperator,AsyncKeyedProcessOperator,AsyncStreamFlatMap,AsyncWindowOperator,BatchGroupedReduceOperator,CacheTransformationTranslator.IdentityStreamOperator,CacheTransformationTranslator.NoOpStreamOperator,CollectSinkOperator,ContinuousFileReaderOperator,EvictingWindowOperator,GlobalCommitterOperator,KeyedProcessOperator,KeyedSortPartitionOperator,LegacyKeyedProcessOperator,MapPartitionOperator,PartitionAggregateOperator,PartitionReduceOperator,ProcessOperator,QueryableAppendingStateOperator,QueryableValueStateOperator,SortPartitionOperator,StreamFilter,StreamFlatMap,StreamGroupedReduceAsyncStateOperator,StreamGroupedReduceOperator,StreamMap,StreamProject,StreamSink,TimestampsAndWatermarksOperator,WindowOperator
@PublicEvolving
public interface OneInputStreamOperator<IN,OUT>
extends StreamOperator<OUT>, Input<IN>
Interface for stream operators with one input. Use
AbstractStreamOperator as a base class if you want to
implement a custom operator.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsetKeyContextElement(StreamRecord<IN> record) Set the correct key context before processing therecord.Methods inherited from interface org.apache.flink.api.common.state.CheckpointListener
notifyCheckpointAborted, notifyCheckpointCompleteMethods inherited from interface org.apache.flink.streaming.api.operators.Input
processElement, processLatencyMarker, processRecordAttributes, processWatermark, processWatermark, processWatermarkStatusMethods inherited from interface org.apache.flink.streaming.api.operators.KeyContext
getCurrentKey, setCurrentKeyMethods inherited from interface org.apache.flink.streaming.api.operators.StreamOperator
close, finish, getMetricGroup, getOperatorAttributes, getOperatorID, initializeState, open, prepareSnapshotPreBarrier, setKeyContextElement1, setKeyContextElement2, snapshotState
-
Method Details
-
setKeyContextElement
Description copied from interface:InputSet 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.- Specified by:
setKeyContextElementin interfaceInput<IN>- Throws:
Exception
-