Class SourceTransformationTranslator<OUT,SplitT extends org.apache.flink.api.connector.source.SourceSplit,EnumChkT>
java.lang.Object
org.apache.flink.streaming.api.graph.SimpleTransformationTranslator<OUT,SourceTransformation<OUT,SplitT,EnumChkT>>
org.apache.flink.streaming.runtime.translators.SourceTransformationTranslator<OUT,SplitT,EnumChkT>
- Type Parameters:
OUT- The type of the elements that this source produces.
- All Implemented Interfaces:
TransformationTranslator<OUT,SourceTransformation<OUT, SplitT, EnumChkT>>
@Internal
public class SourceTransformationTranslator<OUT,SplitT extends org.apache.flink.api.connector.source.SourceSplit,EnumChkT>
extends SimpleTransformationTranslator<OUT,SourceTransformation<OUT,SplitT,EnumChkT>>
A
TransformationTranslator for the SourceTransformation.-
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 TypeMethodDescriptionprotected Collection<Integer>translateForBatchInternal(SourceTransformation<OUT, SplitT, EnumChkT> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for BATCH-style execution.protected Collection<Integer>translateForStreamingInternal(SourceTransformation<OUT, SplitT, EnumChkT> transformation, TransformationTranslator.Context context) Translates a givenTransformationto its runtime implementation for STREAMING-style execution.Methods inherited from class org.apache.flink.streaming.api.graph.SimpleTransformationTranslator
translateForBatch, translateForStreaming
-
Constructor Details
-
SourceTransformationTranslator
public SourceTransformationTranslator()
-
-
Method Details
-
translateForBatchInternal
protected Collection<Integer> translateForBatchInternal(SourceTransformation<OUT, SplitT, EnumChkT> transformation, TransformationTranslator.Context context) Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchInternalin classSimpleTransformationTranslator<OUT,SourceTransformation<OUT, SplitT extends org.apache.flink.api.connector.source.SourceSplit, EnumChkT>> - 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
protected Collection<Integer> translateForStreamingInternal(SourceTransformation<OUT, SplitT, EnumChkT> transformation, TransformationTranslator.Context context) Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingInternalin classSimpleTransformationTranslator<OUT,SourceTransformation<OUT, SplitT extends org.apache.flink.api.connector.source.SourceSplit, EnumChkT>> - 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.
-