Class PlacementConstraint.Or
java.lang.Object
org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
org.apache.hadoop.yarn.api.resource.PlacementConstraint.CompositeConstraint<PlacementConstraint.AbstractConstraint>
org.apache.hadoop.yarn.api.resource.PlacementConstraint.Or
- All Implemented Interfaces:
PlacementConstraint.Visitable
- Enclosing class:
- PlacementConstraint
public static class PlacementConstraint.Or
extends PlacementConstraint.CompositeConstraint<PlacementConstraint.AbstractConstraint>
Class that represents a composite constraint that is a disjunction of other
constraints.
-
Constructor Summary
ConstructorsConstructorDescriptionOr(List<PlacementConstraint.AbstractConstraint> children) Or(PlacementConstraint.AbstractConstraint... children) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(PlacementConstraint.Visitor<T> visitor) Visitor pattern.Get the children of this composite constraint.toString()Methods inherited from class org.apache.hadoop.yarn.api.resource.PlacementConstraint.CompositeConstraint
equals, hashCodeMethods inherited from class org.apache.hadoop.yarn.api.resource.PlacementConstraint.AbstractConstraint
build
-
Constructor Details
-
Or
-
Or
-
-
Method Details
-
getChildren
Description copied from class:PlacementConstraint.CompositeConstraintGet the children of this composite constraint.- Specified by:
getChildrenin classPlacementConstraint.CompositeConstraint<PlacementConstraint.AbstractConstraint>- Returns:
- the children of the composite constraint
-
accept
Description copied from interface:PlacementConstraint.VisitableVisitor pattern.- Type Parameters:
T- defines the type that the visitor will use and the return type of the accept.- Parameters:
visitor- visitor to be used- Returns:
- the result of visiting a given object.
-
toString
- Overrides:
toStringin classPlacementConstraint.AbstractConstraint
-