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
.bufferTimeout, description, id, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM
Constructor and Description |
---|
ReduceTransformation(String name,
int parallelism,
Transformation<IN> input,
ReduceFunction<IN> reducer,
KeySelector<IN,K> keySelector,
TypeInformation<K> keyTypeInfo,
boolean parallelismConfigured) |
Modifier and Type | Method and Description |
---|---|
ChainingStrategy |
getChainingStrategy() |
List<Transformation<?>> |
getInputs()
Returns the
transformations that are the immediate predecessors of the
current transformation in the transformation graph. |
TypeInformation<IN> |
getInputType()
Returns the
TypeInformation for the elements of the input. |
KeySelector<IN,K> |
getKeySelector() |
TypeInformation<K> |
getKeyTypeInfo() |
ReduceFunction<IN> |
getReducer() |
List<Transformation<?>> |
getTransitivePredecessors()
Returns all transitive predecessor
Transformation s of this Transformation . |
void |
setChainingStrategy(ChainingStrategy strategy)
Sets the chaining strategy of this
Transformation . |
isSupportsConcurrentExecutionAttempts, setSupportsConcurrentExecutionAttempts
declareManagedMemoryUseCaseAtOperatorScope, declareManagedMemoryUseCaseAtSlotScope, equals, getBufferTimeout, getCoLocationGroupKey, getDescription, getId, getManagedMemoryOperatorScopeUseCaseWeights, getManagedMemorySlotScopeUseCases, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, isParallelismConfigured, setBufferTimeout, setCoLocationGroupKey, setDescription, setMaxParallelism, setName, setOutputType, setParallelism, setParallelism, setResources, setSlotSharingGroup, setSlotSharingGroup, setUid, setUidHash, toString, updateManagedMemoryStateBackendUseCase
public ReduceTransformation(String name, int parallelism, Transformation<IN> input, ReduceFunction<IN> reducer, KeySelector<IN,K> keySelector, TypeInformation<K> keyTypeInfo, boolean parallelismConfigured)
public void setChainingStrategy(ChainingStrategy strategy)
PhysicalTransformation
Transformation
.setChainingStrategy
in class PhysicalTransformation<IN>
public ChainingStrategy getChainingStrategy()
public KeySelector<IN,K> getKeySelector()
public TypeInformation<K> getKeyTypeInfo()
public ReduceFunction<IN> getReducer()
public TypeInformation<IN> getInputType()
TypeInformation
for the elements of the input.public List<Transformation<?>> getTransitivePredecessors()
Transformation
Transformation
s of this Transformation
.
This is, for example, used when determining whether a feedback edge of an iteration actually
has the iteration head as a predecessor.getTransitivePredecessors
in class Transformation<IN>
public List<Transformation<?>> getInputs()
Transformation
transformations
that are the immediate predecessors of the
current transformation in the transformation graph.getInputs
in class Transformation<IN>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.