public class CoLocationGroup extends Object implements Serializable
The co-location group is used for example to make sure that the i-th subtasks for iteration head and iteration tail are scheduled to the same TaskManager.
Constructor and Description |
---|
CoLocationGroup() |
CoLocationGroup(JobVertex... vertices) |
Modifier and Type | Method and Description |
---|---|
void |
addVertex(JobVertex vertex) |
AbstractID |
getId()
Gets the ID that identifies this co-location group.
|
CoLocationConstraint |
getLocationConstraint(int subtask) |
List<JobVertex> |
getVertices() |
void |
mergeInto(CoLocationGroup other) |
void |
resetConstraints()
Resets this co-location group, meaning that future calls to
getLocationConstraint(int) will give out new CoLocationConstraints. |
public CoLocationGroup()
public CoLocationGroup(JobVertex... vertices)
public void addVertex(JobVertex vertex)
public void mergeInto(CoLocationGroup other)
public CoLocationConstraint getLocationConstraint(int subtask)
public AbstractID getId()
public void resetConstraints()
getLocationConstraint(int)
will give out new CoLocationConstraints.
This method can only be called when no tasks from any of the CoLocationConstraints are executed any more.
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.