Class PlacementConstraintParser.SourceTags
java.lang.Object
org.apache.hadoop.yarn.util.constraint.PlacementConstraintParser.SourceTags
- Enclosing class:
- PlacementConstraintParser
A helper class to encapsulate source tags and allocations in the
placement specification.
-
Method Details
-
emptySourceTags
-
isEmpty
public boolean isEmpty() -
getTag
-
getNumOfAllocations
public int getNumOfAllocations() -
parseFrom
public static PlacementConstraintParser.SourceTags parseFrom(String expr) throws PlacementConstraintParseException Parses source tags from expression "sourceTags(numOfAllocations)".- Parameters:
expr- expression string.- Returns:
- source tags, see
PlacementConstraintParser.SourceTags - Throws:
PlacementConstraintParseException- when the placement constraint parser fails to parse an expression.
-