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>
Transformation that describes a reduce operation on a KeyedStream.| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
ChainingStrategy |
getChainingStrategy() |
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
org.apache.flink.api.common.typeinfo.TypeInformation<IN> |
getInputType()
Returns the
TypeInformation for 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() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
isSupportsConcurrentExecutionAttempts, setSupportsConcurrentExecutionAttemptsdeclareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getTransitivePredecessors, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, toStringWithoutId, updateManagedMemoryStateBackendUseCasepublic 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)
public void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy in class PhysicalTransformation<IN>public ChainingStrategy getChainingStrategy()
public org.apache.flink.api.common.typeinfo.TypeInformation<K> getKeyTypeInfo()
public org.apache.flink.api.common.functions.ReduceFunction<IN> getReducer()
public org.apache.flink.api.common.typeinfo.TypeInformation<IN> getInputType()
TypeInformation for the elements of the input.protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
getTransitivePredecessorsInternal in class org.apache.flink.api.dag.Transformation<IN>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.