Interface CoLocationGroup
- All Known Implementing Classes:
CoLocationGroupImpl
public interface CoLocationGroup
CoLocationGroup refers to a list of JobVertex instances, where the i-th
subtask of one vertex has to be executed on the same TaskManager as the i-th
subtask of all other JobVertex instances in the same group.
The co-location group is used to make sure that the i-th subtasks for iteration head and iteration tail are scheduled on the same TaskManager.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.util.AbstractIDgetId()Returns the unique identifier describing this co-location constraint as a group.getLocationConstraint(int subTaskIndex) Returns theCoLocationConstraintfor a specificsubTaskIndex.Returns the IDs of theJobVertexinstances participating in this group.
-
Method Details
-
getId
org.apache.flink.util.AbstractID getId()Returns the unique identifier describing this co-location constraint as a group.- Returns:
- The group's identifier.
-
getVertexIds
List<JobVertexID> getVertexIds()Returns the IDs of theJobVertexinstances participating in this group.- Returns:
- The group's members represented by their
JobVertexIDs.
-
getLocationConstraint
Returns theCoLocationConstraintfor a specificsubTaskIndex.- Parameters:
subTaskIndex- The index of the subtasks for which aCoLocationConstraintshall be returned.- Returns:
- The corresponding
CoLocationConstraintinstance.
-