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,StubTransformationTranslator,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 allTransformationTranslatorswho translateTransformationsthat have a single operator in their runtime implementation. These include most of the currently supported operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.graph.TransformationTranslator
TransformationTranslator.Context
-
-
Constructor Summary
Constructors Constructor Description SimpleTransformationTranslator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Integer>translateForBatch(T transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for BATCH-style execution.protected abstract Collection<Integer>translateForBatchInternal(T transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for BATCH-style execution.Collection<Integer>translateForStreaming(T transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for STREAMING-style execution.protected abstract Collection<Integer>translateForStreamingInternal(T transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for STREAMING-style execution.
-
-
-
Method Detail
-
translateForBatch
public final Collection<Integer> translateForBatch(T transformation, TransformationTranslator.Context context)
Description copied from interface:TransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchin interfaceTransformationTranslator<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"
StreamNodesin 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:TransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingin interfaceTransformationTranslator<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"
StreamNodesin 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 givenTransformationto its runtime implementation for BATCH-style execution.- Parameters:
transformation- The transformation to be translated.context- The translation context.- Returns:
- The ids of the "last"
StreamNodesin 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 givenTransformationto its runtime implementation for STREAMING-style execution.- Parameters:
transformation- The transformation to be translated.context- The translation context.- Returns:
- The ids of the "last"
StreamNodesin the transformation graph corresponding to this transformation. These will be the nodes that a potential following transformation will need to connect to.
-
-