public static class PlacementConstraint.TargetConstraint extends PlacementConstraint.AbstractConstraint
PlacementConstraint.SingleConstraint, where the
 minimum and the maximum cardinalities take specific values based on the
 TargetOperator used.| Constructor and Description | 
|---|
| TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
                String scope,
                Set<PlacementConstraint.TargetExpression> targetExpressions) | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | accept(PlacementConstraint.Visitor<T> visitor)Visitor pattern. | 
| boolean | equals(Object o) | 
| org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator | getOp()Get the target operator of the constraint. | 
| String | getScope()Get the scope of the constraint. | 
| Set<PlacementConstraint.TargetExpression> | getTargetExpressions()Get the set of target expressions. | 
| int | hashCode() | 
| String | toString() | 
buildpublic TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
                        String scope,
                        Set<PlacementConstraint.TargetExpression> targetExpressions)
public org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator getOp()
public String getScope()
public Set<PlacementConstraint.TargetExpression> getTargetExpressions()
public String toString()
toString in class PlacementConstraint.AbstractConstraintpublic <T> T accept(PlacementConstraint.Visitor<T> visitor)
PlacementConstraint.VisitableT - defines the type that the visitor will use and the return type
          of the accept.visitor - visitor to be usedCopyright © 2008–2023 Apache Software Foundation. All rights reserved.