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>>
public class ReduceTransformationTranslator<IN,KEY> extends SimpleTransformationTranslator<OUT,OP>
ATransformationTranslatorfor theReduceTransformation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.graph.TransformationTranslator
TransformationTranslator.Context
-
-
Constructor Summary
Constructors Constructor Description ReduceTransformationTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Integer>translateForBatchInternal(ReduceTransformation<IN,KEY> transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for BATCH-style execution.Collection<Integer>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<OUT> transformation, StreamOperatorFactory<OUT> 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
-
-
-
-
Method Detail
-
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<OUT> transformation, StreamOperatorFactory<OUT> 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)
-
-