Class FlinkExecutableStageFunction<InputT>

java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.beam.runners.flink.translation.functions.FlinkExecutableStageFunction<InputT>
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.GroupReduceFunction<WindowedValue<InputT>,RawUnionValue>, org.apache.flink.api.common.functions.MapPartitionFunction<WindowedValue<InputT>,RawUnionValue>, org.apache.flink.api.common.functions.RichFunction

public class FlinkExecutableStageFunction<InputT> extends org.apache.flink.api.common.functions.AbstractRichFunction implements org.apache.flink.api.common.functions.MapPartitionFunction<WindowedValue<InputT>,RawUnionValue>, org.apache.flink.api.common.functions.GroupReduceFunction<WindowedValue<InputT>,RawUnionValue>
Flink operator that passes its input DataSet through an SDK-executed ExecutableStage.

The output of this operation is a multiplexed DataSet whose elements are tagged with a union coder. The coder's tags are determined by the output coder map. The resulting data set should be further processed by a FlinkExecutableStagePruningFunction.

See Also:
  • Constructor Details

  • Method Details

    • open

      public void open(org.apache.flink.configuration.Configuration parameters)
      Specified by:
      open in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      open in class org.apache.flink.api.common.functions.AbstractRichFunction
    • mapPartition

      public void mapPartition(Iterable<WindowedValue<InputT>> iterable, org.apache.flink.util.Collector<RawUnionValue> collector) throws Exception
      For non-stateful processing via a simple MapPartitionFunction.
      Specified by:
      mapPartition in interface org.apache.flink.api.common.functions.MapPartitionFunction<WindowedValue<InputT>,RawUnionValue>
      Throws:
      Exception
    • reduce

      public void reduce(Iterable<WindowedValue<InputT>> iterable, org.apache.flink.util.Collector<RawUnionValue> collector) throws Exception
      For stateful and timer processing via a GroupReduceFunction.
      Specified by:
      reduce in interface org.apache.flink.api.common.functions.GroupReduceFunction<WindowedValue<InputT>,RawUnionValue>
      Throws:
      Exception
    • close

      public void close() throws Exception
      Specified by:
      close in interface org.apache.flink.api.common.functions.RichFunction
      Overrides:
      close in class org.apache.flink.api.common.functions.AbstractRichFunction
      Throws:
      Exception