Class StreamFlatMap<IN,OUT>

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

@Internal public class StreamFlatMap<IN,OUT> extends AbstractUdfStreamOperator<OUT,org.apache.flink.api.common.functions.FlatMapFunction<IN,OUT>> implements OneInputStreamOperator<IN,OUT>
A StreamOperator for executing FlatMapFunctions.
See Also:
  • Constructor Details

    • StreamFlatMap

      public StreamFlatMap(org.apache.flink.api.common.functions.FlatMapFunction<IN,OUT> flatMapper)
  • 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<OUT,org.apache.flink.api.common.functions.FlatMapFunction<IN,OUT>>
      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