Interface CoLocationGroup
-
- All Known Implementing Classes:
CoLocationGroupImpl
public interface CoLocationGroupCoLocationGrouprefers to a list ofJobVertexinstances, where the i-th subtask of one vertex has to be executed on the sameTaskManageras the i-th subtask of all otherJobVertexinstances 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.flink.util.AbstractIDgetId()Returns the unique identifier describing this co-location constraint as a group.CoLocationConstraintgetLocationConstraint(int subTaskIndex)Returns theCoLocationConstraintfor a specificsubTaskIndex.List<JobVertexID>getVertexIds()Returns the IDs of theJobVertexinstances participating in this group.
-
-
-
Method Detail
-
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
CoLocationConstraint getLocationConstraint(int subTaskIndex)
Returns theCoLocationConstraintfor a specificsubTaskIndex.- Parameters:
subTaskIndex- The index of the subtasks for which aCoLocationConstraintshall be returned.- Returns:
- The corresponding
CoLocationConstraintinstance.
-
-