T - The type of the input elements and the feedback elements.@Internal
public class FeedbackTransformation<T>
extends org.apache.flink.api.dag.Transformation<T>
This is different from how iterations work in batch processing. Once a feedback point is
defined you can connect one or several Transformations as a feedback edges. Operations
downstream from the feedback point will receive elements from the input of this feedback point
and from the feedback edges.
Both the partitioning of the input and the feedback edges is preserved. They can also have
differing partitioning strategies. This requires, however, that the parallelism of the feedback
Transformations must match the parallelism of the input Transformation.
The type of the input Transformation and the feedback Transformation must
match.
| 构造器和说明 |
|---|
FeedbackTransformation(org.apache.flink.api.dag.Transformation<T> input,
Long waitTime)
Creates a new
FeedbackTransformation from the given input. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFeedbackEdge(org.apache.flink.api.dag.Transformation<T> transform)
Adds a feedback edge.
|
List<org.apache.flink.api.dag.Transformation<T>> |
getFeedbackEdges()
Returns the list of feedback
Transformations. |
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
Long |
getWaitTime()
Returns the wait time.
|
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 FeedbackTransformation(org.apache.flink.api.dag.Transformation<T> input, Long waitTime)
FeedbackTransformation from the given input.input - The input TransformationwaitTime - The wait time of the feedback operator. After the time expires the operation
will close and not receive any more feedback elements.public void addFeedbackEdge(org.apache.flink.api.dag.Transformation<T> transform)
Transformation must match the
parallelism of the input Transformation of this FeedbackTransformationtransform - The new feedback Transformation.public List<org.apache.flink.api.dag.Transformation<T>> getFeedbackEdges()
Transformations.public Long getWaitTime()
public List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors 在类中 org.apache.flink.api.dag.Transformation<T>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.