Class CoLocationGroupImpl
java.lang.Object
org.apache.flink.runtime.jobmanager.scheduler.CoLocationGroupImpl
- All Implemented Interfaces:
Serializable,CoLocationGroup
A
CoLocationGroup implementation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.flink.util.AbstractIDgetId()Returns the unique identifier describing this co-location constraint as a group.getLocationConstraint(int subTaskIndex) Returns theCoLocationConstraintfor a specificsubTaskIndex.Returns the IDs of theJobVertexinstances participating in this group.voidmergeInto(CoLocationGroupImpl other)
-
Constructor Details
-
CoLocationGroupImpl
-
-
Method Details
-
addVertex
-
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
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
-
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.
-