F - The type of the feedback elements.@Internal
public class CoFeedbackTransformation<F>
extends org.apache.flink.api.dag.Transformation<F>
Transformation because the only allowed operations after a
CoFeedbackTransformation are TwoInputTransformations.
The upstream Transformation will be connected to the first input of the Co-Transform
while the feedback edges will be connected to the second input.
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 upstream Transformation is not wired to this CoFeedbackTransformation. It
is instead directly wired to the TwoInputTransformation after this CoFeedbackTransformation.
This is different from Iterations in batch processing.
FeedbackTransformation| Constructor and Description |
|---|
CoFeedbackTransformation(int parallelism,
org.apache.flink.api.common.typeinfo.TypeInformation<F> feedbackType,
Long waitTime)
Creates a new
CoFeedbackTransformation from the given input. |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeedbackEdge(org.apache.flink.api.dag.Transformation<F> transform)
Adds a feedback edge.
|
List<org.apache.flink.api.dag.Transformation<F>> |
getFeedbackEdges()
Returns the list of feedback
Transformations. |
List<org.apache.flink.api.dag.Transformation<?>> |
getInputs() |
protected List<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessorsInternal() |
Long |
getWaitTime()
Returns the wait time.
|
declareManagedMemoryUseCaseAtOperatorScope, 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, updateManagedMemoryStateBackendUseCasepublic CoFeedbackTransformation(int parallelism,
org.apache.flink.api.common.typeinfo.TypeInformation<F> feedbackType,
Long waitTime)
CoFeedbackTransformation from the given input.parallelism - The parallelism of the upstream Transformation and the feedback
edges.feedbackType - The type of the feedback edgeswaitTime - 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<F> transform)
Transformation must match the
parallelism of the input Transformation of the upstream Transformation.transform - The new feedback Transformation.public List<org.apache.flink.api.dag.Transformation<F>> getFeedbackEdges()
Transformations.public Long getWaitTime()
protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
getTransitivePredecessorsInternal in class org.apache.flink.api.dag.Transformation<F>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.