Class PlacementConstraintParser.MultipleConstraintsTokenizer
java.lang.Object
org.apache.hadoop.yarn.util.constraint.PlacementConstraintParser.MultipleConstraintsTokenizer
- All Implemented Interfaces:
Enumeration<String>,PlacementConstraintParser.ConstraintTokenizer
- Enclosing class:
- PlacementConstraintParser
public static class PlacementConstraintParser.MultipleConstraintsTokenizer
extends Object
implements PlacementConstraintParser.ConstraintTokenizer
Tokenizer used to handle a placement spec composed by multiple
constraint expressions. Each of them is delimited with the
given delimiter, e.g ':'.
-
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
-
MultipleConstraintsTokenizer
-
-
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>
-