Class PlacementConstraintParser.SourceTagsTokenizer
java.lang.Object
org.apache.hadoop.yarn.util.constraint.PlacementConstraintParser.SourceTagsTokenizer
- All Implemented Interfaces:
Enumeration<String>,PlacementConstraintParser.ConstraintTokenizer
- Enclosing class:
- PlacementConstraintParser
public static class PlacementConstraintParser.SourceTagsTokenizer
extends Object
implements PlacementConstraintParser.ConstraintTokenizer
Tokenizer used to parse allocation tags expression, which should be
in tag(numOfAllocations) syntax.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvalidate()Validate the schema before actual parsing the expression.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
SourceTagsTokenizer
-
-
Method Details
-
validate
Description copied from interface:PlacementConstraintParser.ConstraintTokenizerValidate the schema before actual parsing the expression.- Specified by:
validatein interfacePlacementConstraintParser.ConstraintTokenizer- Throws:
PlacementConstraintParseException- when the placement constraint parser fails to parse an expression.
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<String>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<String>
-