Class ReduceTransformationTranslator<IN,KEY>
java.lang.Object
org.apache.flink.streaming.api.graph.SimpleTransformationTranslator<OUT,OP>
org.apache.flink.streaming.runtime.translators.ReduceTransformationTranslator<IN,KEY>
- Type Parameters:
IN- The type of the elements in the inputTransformationof the transformation to translate.
- All Implemented Interfaces:
TransformationTranslator<IN,ReduceTransformation<IN, KEY>>
A
TransformationTranslator for the ReduceTransformation.-
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 TypeMethodDescriptiontranslateForBatchInternal(ReduceTransformation<IN, KEY> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for BATCH-style execution.translateForStreamingInternal(ReduceTransformation<IN, KEY> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for STREAMING-style execution.protected Collection<Integer>translateInternal(org.apache.flink.api.dag.Transformation<IN> transformation, StreamOperatorFactory<IN> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inputType, org.apache.flink.api.java.functions.KeySelector<IN, ?> stateKeySelector, org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType, TransformationTranslator.Context context) Methods inherited from class org.apache.flink.streaming.api.graph.SimpleTransformationTranslator
translateForBatch, translateForStreaming
-
Constructor Details
-
ReduceTransformationTranslator
public ReduceTransformationTranslator()
-
-
Method Details
-
translateForBatchInternal
public Collection<Integer> translateForBatchInternal(ReduceTransformation<IN, KEY> transformation, TransformationTranslator.Context context) Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchInternalin classSimpleTransformationTranslator<IN,ReduceTransformation<IN, KEY>> - 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
public Collection<Integer> translateForStreamingInternal(ReduceTransformation<IN, KEY> transformation, TransformationTranslator.Context context) Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingInternalin classSimpleTransformationTranslator<IN,ReduceTransformation<IN, KEY>> - 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.
-
translateInternal
protected Collection<Integer> translateInternal(org.apache.flink.api.dag.Transformation<IN> transformation, StreamOperatorFactory<IN> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<IN> inputType, @Nullable org.apache.flink.api.java.functions.KeySelector<IN, ?> stateKeySelector, @Nullable org.apache.flink.api.common.typeinfo.TypeInformation<?> stateKeyType, TransformationTranslator.Context context)
-