Class StreamNodeForwardGroup
java.lang.Object
org.apache.flink.runtime.jobgraph.forwardgroup.StreamNodeForwardGroup
- All Implemented Interfaces:
ForwardGroup<Integer>
Stream node level implement for
ForwardGroup.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the max parallelism for this forward group.intReturns the parallelism for this forward group.Returns the vertex ids in this forward group.booleanReturns if max parallelism has been decided for this forward group.booleanReturns if parallelism has been decided for this forward group.booleanmergeForwardGroup(StreamNodeForwardGroup forwardGroupToMerge) Merges forwardGroupToMerge into this and update the parallelism information for stream nodes in merged forward group.voidsetMaxParallelism(int maxParallelism) Sets the max parallelism for this forward group.voidsetParallelism(int parallelism) Sets the parallelism for this forward group.intsize()
-
Constructor Details
-
StreamNodeForwardGroup
-
-
Method Details
-
setParallelism
public void setParallelism(int parallelism) Description copied from interface:ForwardGroupSets the parallelism for this forward group.- Specified by:
setParallelismin interfaceForwardGroup<Integer>- Parameters:
parallelism- the parallelism to set.
-
isParallelismDecided
public boolean isParallelismDecided()Description copied from interface:ForwardGroupReturns if parallelism has been decided for this forward group.- Specified by:
isParallelismDecidedin interfaceForwardGroup<Integer>- Returns:
- is parallelism decided for this forward group.
-
getParallelism
public int getParallelism()Description copied from interface:ForwardGroupReturns the parallelism for this forward group.- Specified by:
getParallelismin interfaceForwardGroup<Integer>- Returns:
- parallelism for this forward group.
-
setMaxParallelism
public void setMaxParallelism(int maxParallelism) Description copied from interface:ForwardGroupSets the max parallelism for this forward group.- Specified by:
setMaxParallelismin interfaceForwardGroup<Integer>- Parameters:
maxParallelism- the max parallelism to set.
-
isMaxParallelismDecided
public boolean isMaxParallelismDecided()Description copied from interface:ForwardGroupReturns if max parallelism has been decided for this forward group.- Specified by:
isMaxParallelismDecidedin interfaceForwardGroup<Integer>- Returns:
- is max parallelism decided for this forward group.
-
getMaxParallelism
public int getMaxParallelism()Description copied from interface:ForwardGroupReturns the max parallelism for this forward group.- Specified by:
getMaxParallelismin interfaceForwardGroup<Integer>- Returns:
- max parallelism for this forward group.
-
getVertexIds
Description copied from interface:ForwardGroupReturns the vertex ids in this forward group.- Specified by:
getVertexIdsin interfaceForwardGroup<Integer>- Returns:
- vertex ids in this forward group.
-
mergeForwardGroup
Merges forwardGroupToMerge into this and update the parallelism information for stream nodes in merged forward group.- Parameters:
forwardGroupToMerge- The forward group to be merged.- Returns:
- whether the merge was successful.
-
size
@VisibleForTesting public int size()
-