Interface VertexParallelismInformation
-
- All Known Implementing Classes:
DefaultVertexParallelismInfo
public interface VertexParallelismInformationManages the parallelism properties for a vertex in the execution graph, as well as how they can change during runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRescaleMaxParallelism(int desiredMaxParallelism)Returns whether the vertex's max parallelism can be changed to a given value.intgetMaxParallelism()Returns the vertex's max parallelism.intgetMinParallelism()Returns a vertex's min parallelism.intgetParallelism()Returns a vertex's parallelism.voidsetMaxParallelism(int maxParallelism)Changes a given vertex's max parallelism property.voidsetParallelism(int parallelism)Set a given vertex's parallelism property.
-
-
-
Method Detail
-
getMinParallelism
int getMinParallelism()
Returns a vertex's min parallelism.- Returns:
- the min parallelism for the vertex
-
getParallelism
int getParallelism()
Returns a vertex's parallelism.- Returns:
- the parallelism for the vertex
-
getMaxParallelism
int getMaxParallelism()
Returns the vertex's max parallelism.- Returns:
- the max parallelism for the vertex
-
setParallelism
void setParallelism(int parallelism)
Set a given vertex's parallelism property. The parallelism can be changed only if the vertex parallelism was not decided yet (i.e. was -1).- Parameters:
parallelism- the parallelism for the vertex
-
setMaxParallelism
void setMaxParallelism(int maxParallelism)
Changes a given vertex's max parallelism property. The caller should first check the validity of the new setting viacanRescaleMaxParallelism(int), otherwise this operation may fail.- Parameters:
maxParallelism- the new max parallelism for the vertex
-
canRescaleMaxParallelism
boolean canRescaleMaxParallelism(int desiredMaxParallelism)
Returns whether the vertex's max parallelism can be changed to a given value.- Parameters:
desiredMaxParallelism- the desired max parallelism for the vertex- Returns:
- whether the max parallelism can be changed to the given value
-
-