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.| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation. |
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, 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)
public void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformationTransformation.setChainingStrategy 在类中 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.public List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors 在类中 org.apache.flink.api.dag.Transformation<IN>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.