Class CacheTransformationTranslator<OUT,T extends CacheTransformation<OUT>>
- java.lang.Object
-
- org.apache.flink.streaming.api.graph.SimpleTransformationTranslator<OUT,T>
-
- org.apache.flink.streaming.runtime.translators.CacheTransformationTranslator<OUT,T>
-
- All Implemented Interfaces:
TransformationTranslator<OUT,T>
@Internal public class CacheTransformationTranslator<OUT,T extends CacheTransformation<OUT>> extends SimpleTransformationTranslator<OUT,T>
Translator forCacheTransformationTranslator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCacheTransformationTranslator.IdentityStreamOperator<T>TheCacheTransformationTranslator.IdentityStreamOperatoracts as a dummy source to consume cached intermediate dataset.static classCacheTransformationTranslator.NoOpStreamOperator<T>TheCacheTransformationTranslator.NoOpStreamOperatoracts as a dummy sink so that the upstream can produce the intermediate dataset to be cached.-
Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.graph.TransformationTranslator
TransformationTranslator.Context
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_CONSUMER_OPERATOR_NAMEstatic StringCACHE_PRODUCER_OPERATOR_NAME
-
Constructor Summary
Constructors Constructor Description CacheTransformationTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Integer>translateForBatchInternal(T transformation, TransformationTranslator.Context context)Translates a givenTransformationto its runtime implementation for BATCH-style execution.protected Collection<Integer>translateForStreamingInternal(T 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
-
-
-
-
Field Detail
-
CACHE_CONSUMER_OPERATOR_NAME
public static final String CACHE_CONSUMER_OPERATOR_NAME
- See Also:
- Constant Field Values
-
CACHE_PRODUCER_OPERATOR_NAME
public static final String CACHE_PRODUCER_OPERATOR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
translateForBatchInternal
protected Collection<Integer> translateForBatchInternal(T transformation, TransformationTranslator.Context context)
Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for BATCH-style execution.- Specified by:
translateForBatchInternalin classSimpleTransformationTranslator<OUT,T extends CacheTransformation<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
protected Collection<Integer> translateForStreamingInternal(T transformation, TransformationTranslator.Context context)
Description copied from class:SimpleTransformationTranslatorTranslates a givenTransformationto its runtime implementation for STREAMING-style execution.- Specified by:
translateForStreamingInternalin classSimpleTransformationTranslator<OUT,T extends CacheTransformation<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.
-
-