PlacementConstraint.Visitablepublic static class PlacementConstraint.TargetConstraint extends PlacementConstraint.AbstractConstraint
PlacementConstraint.SingleConstraint, where the
minimum and the maximum cardinalities take specific values based on the
PlacementConstraint.TargetConstraint.TargetOperator used.| Constructor | Description |
|---|---|
TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
java.lang.String scope,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions) |
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(PlacementConstraint.Visitor<T> visitor) |
Visitor pattern.
|
boolean |
equals(java.lang.Object o) |
|
org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator |
getOp() |
Get the target operator of the constraint.
|
java.lang.String |
getScope() |
Get the scope of the constraint.
|
java.util.Set<PlacementConstraint.TargetExpression> |
getTargetExpressions() |
Get the set of target expressions.
|
int |
hashCode() |
|
java.lang.String |
toString() |
buildpublic TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
java.lang.String scope,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions)
public org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator getOp()
public java.lang.String getScope()
public java.util.Set<PlacementConstraint.TargetExpression> getTargetExpressions()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.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–2025 Apache Software Foundation. All rights reserved.