Class GlobalCommitterTransformationTranslator<CommT>
java.lang.Object
org.apache.flink.streaming.runtime.translators.GlobalCommitterTransformationTranslator<CommT>
- All Implemented Interfaces:
TransformationTranslator<Void,GlobalCommitterTransform<CommT>>
@Internal
public class GlobalCommitterTransformationTranslator<CommT>
extends Object
implements TransformationTranslator<Void,GlobalCommitterTransform<CommT>>
A
TransformationTranslator for the GlobalCommitterOperator. The main purpose is
to detect whether we set GlobalCommitterOperator.commitOnInput or not.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.graph.TransformationTranslator
TransformationTranslator.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontranslateForBatch(GlobalCommitterTransform<CommT> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for BATCH-style execution.translateForStreaming(GlobalCommitterTransform<CommT> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for STREAMING-style execution.
-
Constructor Details
-
GlobalCommitterTransformationTranslator
public GlobalCommitterTransformationTranslator()
-
-
Method Details
-
translateForBatch
public Collection<Integer> translateForBatch(GlobalCommitterTransform<CommT> transformation, TransformationTranslator.Context context) Description copied from interface:TransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchin interfaceTransformationTranslator<Void,GlobalCommitterTransform<CommT>> - 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 Collection<Integer> translateForStreaming(GlobalCommitterTransform<CommT> transformation, TransformationTranslator.Context context) Description copied from interface:TransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingin interfaceTransformationTranslator<Void,GlobalCommitterTransform<CommT>> - 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.
-