Class StreamGroupedReduceOperator<IN>

java.lang.Object
org.apache.flink.streaming.api.operators.AbstractStreamOperator<OUT>
org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator<IN,org.apache.flink.api.common.functions.ReduceFunction<IN>>
org.apache.flink.streaming.api.operators.StreamGroupedReduceOperator<IN>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.state.CheckpointListener, Input<IN>, KeyContext, KeyContextHandler, OneInputStreamOperator<IN,IN>, org.apache.flink.streaming.api.operators.OutputTypeConfigurable<IN>, StreamOperator<IN>, StreamOperatorStateHandler.CheckpointedStreamOperator, UserFunctionProvider<org.apache.flink.api.common.functions.ReduceFunction<IN>>, YieldingOperator<IN>

@Internal public class StreamGroupedReduceOperator<IN> extends AbstractUdfStreamOperator<IN,org.apache.flink.api.common.functions.ReduceFunction<IN>> implements OneInputStreamOperator<IN,IN>
A StreamOperator for executing a ReduceFunction on a KeyedStream.
See Also:
  • Constructor Details

    • StreamGroupedReduceOperator

      public StreamGroupedReduceOperator(org.apache.flink.api.common.functions.ReduceFunction<IN> reducer, org.apache.flink.api.common.typeutils.TypeSerializer<IN> serializer)
  • Method Details

    • open

      public void open() throws Exception
      Description copied from class: AbstractStreamOperator
      This method is called immediately before any elements are processed, it should contain the operator's initialization logic, e.g. state initialization.

      The default implementation does nothing.

      Specified by:
      open in interface StreamOperator<IN>
      Overrides:
      open in class AbstractUdfStreamOperator<IN,org.apache.flink.api.common.functions.ReduceFunction<IN>>
      Throws:
      Exception - An exception in this method causes the operator to fail.
    • processElement

      public void processElement(StreamRecord<IN> element) throws Exception
      Description copied from interface: Input
      Processes one element that arrived on this input of the MultipleInputStreamOperator. This method is guaranteed to not be called concurrently with other methods of the operator.
      Specified by:
      processElement in interface Input<IN>
      Throws:
      Exception