Class OneInputTransformationTranslator<IN,OUT>
- java.lang.Object
-
- org.apache.flink.streaming.api.graph.SimpleTransformationTranslator<OUT,OP>
-
- org.apache.flink.streaming.runtime.translators.OneInputTransformationTranslator<IN,OUT>
-
- Type Parameters:
IN- The type of the elements in the inputTransformationof the transformation to translate.OUT- The type of the elements that result from the providedOneInputTransformation.
- All Implemented Interfaces:
TransformationTranslator<OUT,OneInputTransformation<IN,OUT>>
@Internal public final class OneInputTransformationTranslator<IN,OUT> extends SimpleTransformationTranslator<OUT,OP>
ATransformationTranslatorfor theOneInputTransformation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.graph.TransformationTranslator
TransformationTranslator.Context
-
-
Constructor Summary
Constructors Constructor Description OneInputTransformationTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Integer>translateForBatchInternal(OneInputTransformation<IN,OUT> transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for BATCH-style execution.Collection<Integer>translateForStreamingInternal(OneInputTransformation<IN,OUT> 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(OneInputTransformation<IN,OUT> transformation, TransformationTranslator.Context context)
Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchInternalin classSimpleTransformationTranslator<OUT,OneInputTransformation<IN,OUT>>- 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(OneInputTransformation<IN,OUT> transformation, TransformationTranslator.Context context)
Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingInternalin classSimpleTransformationTranslator<OUT,OneInputTransformation<IN,OUT>>- 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)
-
-