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,GlobalCommitterTransformationTranslator,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>>
A
TransformationTranslator is responsible for translating a given Transformation
to its runtime implementation depending on the execution mode.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA context giving the necessary information for the translation of a given transformation. -
Method Summary
Modifier and TypeMethodDescriptiontranslateForBatch(T transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for BATCH-style execution.translateForStreaming(T transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for STREAMING-style execution.
-
Method Details
-
translateForBatch
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.
-