Package org.apache.hadoop.yarn.api.resource
Class PlacementConstraint
java.lang.Object
org.apache.hadoop.yarn.api.resource.PlacementConstraint
PlacementConstraint represents a placement constraint for a resource
allocation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraintAbstract class that acts as the superclass of all placement constraint classes.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.AndClass that represents a composite constraint that is a conjunction of other constraints.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.CardinalityConstraintClass that represents a cardinality constraint.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.CompositeConstraint<R extends org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitable>Class that represents composite constraints, which comprise other constraints, forming a constraint tree.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOrClass that represents a composite constraint that comprises a list of timed placement constraints (seePlacementConstraint.TimedPlacementConstraint).static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.OrClass that represents a composite constraint that is a disjunction of other constraints.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraintConsider a set of nodes N that belongs to the scope specified in the constraint.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraintClass that represents a target constraint.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpressionClass representing the target expressions that are used in placement constraints.static classorg.apache.hadoop.yarn.api.resource.PlacementConstraint.TimedPlacementConstraintRepresents a timed placement constraint that has to be satisfied within a time window.static interfaceorg.apache.hadoop.yarn.api.resource.PlacementConstraint.VisitableInterface used to enable the elements of the constraint tree to be visited.static interfaceorg.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<T>Visitor API for a constraint tree. -
Constructor Summary
ConstructorsConstructorDescriptionPlacementConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint constraintExpr) -
Method Summary
-
Constructor Details
-
PlacementConstraint
public PlacementConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint constraintExpr)
-
-
Method Details
-
toString
-
getConstraintExpr
public org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint getConstraintExpr()Get the constraint expression of the placement constraint.- Returns:
- the constraint expression
-
equals
-
hashCode
public int hashCode()
-