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| 构造器和说明 |
|---|
CoFeedbackTransformation(int parallelism,
org.apache.flink.api.common.typeinfo.TypeInformation<F> feedbackType,
Long waitTime)
Creates a new
CoFeedbackTransformation from the given input. |
| 限定符和类型 | 方法和说明 |
|---|---|
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. |
Collection<org.apache.flink.api.dag.Transformation<?>> |
getTransitivePredecessors() |
Long |
getWaitTime()
Returns the wait time.
|
equals, getBufferTimeout, getCoLocationGroupKey, getId, getManagedMemoryWeight, getMaxParallelism, getMinResources, getName, getNewNodeId, getOutputType, getParallelism, getPreferredResources, getSlotSharingGroup, getUid, getUserProvidedNodeHash, hashCode, setBufferTimeout, setCoLocationGroupKey, setManagedMemoryWeight, setMaxParallelism, setName, setOutputType, setParallelism, setResources, setSlotSharingGroup, setUid, setUidHash, toStringpublic 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()
public Collection<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessors()
getTransitivePredecessors 在类中 org.apache.flink.api.dag.Transformation<F>Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.