Class ReduceTransformation<IN,K>
- java.lang.Object
-
- org.apache.flink.api.dag.Transformation<T>
-
- org.apache.flink.streaming.api.transformations.PhysicalTransformation<IN>
-
- org.apache.flink.streaming.api.transformations.ReduceTransformation<IN,K>
-
- Type Parameters:
IN- The input and output type of the transformation.K- The type of the key of the stream.
@Internal public final class ReduceTransformation<IN,K> extends PhysicalTransformation<IN>
ATransformationthat describes a reduce operation on aKeyedStream.
-
-
Constructor Summary
Constructors Constructor Description ReduceTransformation(String name, int parallelism, org.apache.flink.api.dag.Transformation<IN> input, org.apache.flink.api.common.functions.ReduceFunction<IN> reducer, org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyTypeInfo, boolean parallelismConfigured)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableAsyncState()ChainingStrategygetChainingStrategy()List<org.apache.flink.api.dag.Transformation<?>>getInputs()org.apache.flink.api.common.typeinfo.TypeInformation<IN>getInputType()Returns theTypeInformationfor the elements of the input.org.apache.flink.api.java.functions.KeySelector<IN,K>getKeySelector()org.apache.flink.api.common.typeinfo.TypeInformation<K>getKeyTypeInfo()org.apache.flink.api.common.functions.ReduceFunction<IN>getReducer()protected List<org.apache.flink.api.dag.Transformation<?>>getTransitivePredecessorsInternal()booleanisEnableAsyncState()voidsetChainingStrategy(ChainingStrategy strategy)Sets the chaining strategy of thisTransformation.-
Methods inherited from class org.apache.flink.streaming.api.transformations.PhysicalTransformation
isSupportsConcurrentExecutionAttempts, setSupportsConcurrentExecutionAttempts
-
Methods inherited from class org.apache.flink.api.dag.Transformation
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getAttribute, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getTransitivePredecessors, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setAttribute, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCase
-
-
-
-
Constructor Detail
-
ReduceTransformation
public ReduceTransformation(String name, int parallelism, org.apache.flink.api.dag.Transformation<IN> input, org.apache.flink.api.common.functions.ReduceFunction<IN> reducer, org.apache.flink.api.java.functions.KeySelector<IN,K> keySelector, org.apache.flink.api.common.typeinfo.TypeInformation<K> keyTypeInfo, boolean parallelismConfigured)
-
-
Method Detail
-
setChainingStrategy
public void setChainingStrategy(ChainingStrategy strategy)
Description copied from class:PhysicalTransformationSets the chaining strategy of thisTransformation.- Specified by:
setChainingStrategyin classPhysicalTransformation<IN>
-
getChainingStrategy
public ChainingStrategy getChainingStrategy()
-
getKeyTypeInfo
public org.apache.flink.api.common.typeinfo.TypeInformation<K> getKeyTypeInfo()
-
getReducer
public org.apache.flink.api.common.functions.ReduceFunction<IN> getReducer()
-
getInputType
public org.apache.flink.api.common.typeinfo.TypeInformation<IN> getInputType()
Returns theTypeInformationfor the elements of the input.
-
getTransitivePredecessorsInternal
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
- Specified by:
getTransitivePredecessorsInternalin classorg.apache.flink.api.dag.Transformation<IN>
-
getInputs
public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
- Specified by:
getInputsin classorg.apache.flink.api.dag.Transformation<IN>
-
enableAsyncState
public void enableAsyncState()
- Overrides:
enableAsyncStatein classorg.apache.flink.api.dag.Transformation<IN>
-
isEnableAsyncState
public boolean isEnableAsyncState()
-
-