Class CoLocationGroupImpl
- java.lang.Object
-
- org.apache.flink.runtime.jobmanager.scheduler.CoLocationGroupImpl
-
- All Implemented Interfaces:
Serializable,CoLocationGroup
public class CoLocationGroupImpl extends Object implements CoLocationGroup, Serializable
ACoLocationGroupimplementation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CoLocationGroupImpl(JobVertex... vertices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVertex(JobVertex vertex)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.voidmergeInto(CoLocationGroupImpl other)
-
-
-
Constructor Detail
-
CoLocationGroupImpl
public CoLocationGroupImpl(JobVertex... vertices)
-
-
Method Detail
-
addVertex
public void addVertex(JobVertex vertex)
-
getVertexIds
public List<JobVertexID> getVertexIds()
Description copied from interface:CoLocationGroupReturns the IDs of theJobVertexinstances participating in this group.- Specified by:
getVertexIdsin interfaceCoLocationGroup- Returns:
- The group's members represented by their
JobVertexIDs.
-
getLocationConstraint
public CoLocationConstraint getLocationConstraint(int subTaskIndex)
Description copied from interface:CoLocationGroupReturns theCoLocationConstraintfor a specificsubTaskIndex.- Specified by:
getLocationConstraintin interfaceCoLocationGroup- Parameters:
subTaskIndex- The index of the subtasks for which aCoLocationConstraintshall be returned.- Returns:
- The corresponding
CoLocationConstraintinstance.
-
mergeInto
public void mergeInto(CoLocationGroupImpl other)
-
getId
public org.apache.flink.util.AbstractID getId()
Description copied from interface:CoLocationGroupReturns the unique identifier describing this co-location constraint as a group.- Specified by:
getIdin interfaceCoLocationGroup- Returns:
- The group's identifier.
-
-