Package | Description |
---|---|
org.apache.hadoop.yarn.util.constraint |
Package org.apache.hadoop.yarn.util.constraint contains classes
which is used as utility class for placement constraints.
|
Modifier and Type | Method and Description |
---|---|
abstract PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.ConstraintParser.parse() |
PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.NodeConstraintParser.parse() |
PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.TargetConstraintParser.parse() |
PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.CardinalityConstraintParser.parse() |
PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.ConjunctionConstraintParser.parse() |
static PlacementConstraint.AbstractConstraint |
PlacementConstraintParser.parseExpression(String constraintStr)
Parses a given constraint expression to a
PlacementConstraint.AbstractConstraint ,
this expression can be any valid form of constraint expressions. |
static PlacementConstraintParser.SourceTags |
PlacementConstraintParser.SourceTags.parseFrom(String expr)
Parses source tags from expression "sourceTags(numOfAllocations)".
|
static Map<PlacementConstraintParser.SourceTags,PlacementConstraint> |
PlacementConstraintParser.parsePlacementSpec(String expression)
Parses a placement constraint specification.
|
default void |
PlacementConstraintParser.ConstraintTokenizer.validate()
Validate the schema before actual parsing the expression.
|
void |
PlacementConstraintParser.ConjunctionTokenizer.validate() |
void |
PlacementConstraintParser.SourceTagsTokenizer.validate() |
void |
PlacementConstraintParser.MultipleConstraintsTokenizer.validate() |
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.