Interface TransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>>
-
- Type Parameters:
OUT- The type of the output elements of the transformation being translated.T- The type of transformation being translated.
- All Known Implementing Classes:
AbstractTwoInputTransformationTranslator,BroadcastStateTransformationTranslator,CacheTransformationTranslator,KeyedBroadcastStateTransformationTranslator,LegacySinkTransformationTranslator,LegacySourceTransformationTranslator,MultiInputTransformationTranslator,OneInputTransformationTranslator,PartitionTransformationTranslator,ReduceTransformationTranslator,SideOutputTransformationTranslator,SimpleTransformationTranslator,SinkTransformationTranslator,SourceTransformationTranslator,TimestampsAndWatermarksTransformationTranslator,TwoInputTransformationTranslator,UnionTransformationTranslator
@Internal public interface TransformationTranslator<OUT,T extends org.apache.flink.api.dag.Transformation<OUT>>ATransformationTranslatoris responsible for translating a givenTransformationto its runtime implementation depending on the execution mode.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTransformationTranslator.ContextA context giving the necessary information for the translation of a given transformation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Integer>translateForBatch(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.
-
-
-
Method Detail
-
translateForBatch
Collection<Integer> translateForBatch(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.
-
translateForStreaming
Collection<Integer> translateForStreaming(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.
-
-