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 for
CacheTransformationTranslator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheCacheTransformationTranslator.IdentityStreamOperatoracts as a dummy source to consume cached intermediate dataset.static classTheCacheTransformationTranslator.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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
CACHE_CONSUMER_OPERATOR_NAME
- See Also:
-
CACHE_PRODUCER_OPERATOR_NAME
- See Also:
-
-
Constructor Details
-
CacheTransformationTranslator
public CacheTransformationTranslator()
-
-
Method Details
-
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.
-