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.
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.util.AbstractID |
getId()
Returns the unique identifier describing this co-location constraint as a group.
|
CoLocationConstraint |
getLocationConstraint(int subTaskIndex)
Returns the
CoLocationConstraint for a specific subTaskIndex. |
List<JobVertexID> |
getVertexIds()
Returns the IDs of the
JobVertex instances participating in this group. |
org.apache.flink.util.AbstractID getId()
List<JobVertexID> getVertexIds()
JobVertex instances participating in this group.JobVertexIDs.CoLocationConstraint getLocationConstraint(int subTaskIndex)
CoLocationConstraint for a specific subTaskIndex.subTaskIndex - The index of the subtasks for which a CoLocationConstraint shall
be returned.CoLocationConstraint instance.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.