public class CoLocationGroupImpl extends Object implements CoLocationGroup, Serializable
CoLocationGroup
implementation.Constructor and Description |
---|
CoLocationGroupImpl(JobVertex... vertices) |
Modifier and Type | Method and Description |
---|---|
void |
addVertex(JobVertex vertex) |
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. |
void |
mergeInto(CoLocationGroupImpl other) |
public CoLocationGroupImpl(JobVertex... vertices)
public void addVertex(JobVertex vertex)
public List<JobVertexID> getVertexIds()
CoLocationGroup
JobVertex
instances participating in this group.getVertexIds
in interface CoLocationGroup
JobVertexID
s.public CoLocationConstraint getLocationConstraint(int subTaskIndex)
CoLocationGroup
CoLocationConstraint
for a specific subTaskIndex
.getLocationConstraint
in interface CoLocationGroup
subTaskIndex
- The index of the subtasks for which a CoLocationConstraint
shall
be returned.CoLocationConstraint
instance.public void mergeInto(CoLocationGroupImpl other)
public AbstractID getId()
CoLocationGroup
getId
in interface CoLocationGroup
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.