Class PlacementConstraint.SingleConstraint

java.lang.Object
org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
org.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraint
All Implemented Interfaces:
PlacementConstraint.Visitable
Enclosing class:
PlacementConstraint

public static class PlacementConstraint.SingleConstraint extends PlacementConstraint.AbstractConstraint
Consider a set of nodes N that belongs to the scope specified in the constraint. If the target expressions are satisfied at least minCardinality times and at most max-cardinality times in the node set N, then the constraint is satisfied. For example, a constraint of the form {RACK, 2, 10, allocationTag("zk")}, requires an allocation to be placed within a rack that has at least 2 and at most 10 other allocations with tag "zk".