Interface OneInputStreamOperator<IN,OUT>

Type Parameters:
IN - The input type of the operator
OUT - 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 Details

    • setKeyContextElement

      default void setKeyContextElement(StreamRecord<IN> record) throws Exception
      Description copied from interface: Input
      Set the correct key context before processing the record. 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.
      Specified by:
      setKeyContextElement in interface Input<IN>
      Throws:
      Exception