Class SimpleTransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>>

java.lang.Object
org.apache.flink.streaming.api.graph.SimpleTransformationTranslator<OUT,T>
Type Parameters:
OUT - The type of the output elements of the transformation being translated.
T - The type of transformation being translated.
All Implemented Interfaces:
TransformationTranslator<OUT,T>
Direct Known Subclasses:
AbstractTwoInputTransformationTranslator, CacheTransformationTranslator, LegacySinkTransformationTranslator, LegacySourceTransformationTranslator, MultiInputTransformationTranslator, OneInputTransformationTranslator, PartitionTransformationTranslator, ReduceTransformationTranslator, SideOutputTransformationTranslator, SourceTransformationTranslator, TimestampsAndWatermarksTransformationTranslator, UnionTransformationTranslator

@Internal public abstract class SimpleTransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>> extends Object implements TransformationTranslator<OUT,T>
A base class for all TransformationTranslators who translate Transformations that have a single operator in their runtime implementation. These include most of the currently supported operations.
  • Constructor Details

    • SimpleTransformationTranslator

      public SimpleTransformationTranslator()
  • Method Details

    • translateForBatch

      public final Collection<Integer> translateForBatch(T transformation, TransformationTranslator.Context context)
      Description copied from interface: TransformationTranslator
      Translates a given Transformation to its runtime implementation for BATCH-style execution.
      Specified by:
      translateForBatch in interface TransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>>
      Parameters:
      transformation - The transformation to be translated.
      context - The translation context.
      Returns:
      The ids of the "last" StreamNodes in the transformation graph corresponding to this transformation. These will be the nodes that a potential following transformation will need to connect to.
    • translateForStreaming

      public final Collection<Integer> translateForStreaming(T transformation, TransformationTranslator.Context context)
      Description copied from interface: TransformationTranslator
      Translates a given Transformation to its runtime implementation for STREAMING-style execution.
      Specified by:
      translateForStreaming in interface TransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>>
      Parameters:
      transformation - The transformation to be translated.
      context - The translation context.
      Returns:
      The ids of the "last" StreamNodes in the transformation graph corresponding to this transformation. These will be the nodes that a potential following transformation will need to connect to.
    • translateForBatchInternal

      protected abstract Collection<Integer> translateForBatchInternal(T transformation, TransformationTranslator.Context context)
      Translates a given Transformation to its runtime implementation for BATCH-style execution.
      Parameters:
      transformation - The transformation to be translated.
      context - The translation context.
      Returns:
      The ids of the "last" StreamNodes in the transformation graph corresponding to this transformation. These will be the nodes that a potential following transformation will need to connect to.
    • translateForStreamingInternal

      protected abstract Collection<Integer> translateForStreamingInternal(T transformation, TransformationTranslator.Context context)
      Translates a given Transformation to its runtime implementation for STREAMING-style execution.
      Parameters:
      transformation - The transformation to be translated.
      context - The translation context.
      Returns:
      The ids of the "last" StreamNodes in the transformation graph corresponding to this transformation. These will be the nodes that a potential following transformation will need to connect to.