Class PlacementConstraintParser.ConjunctionTokenizer
java.lang.Object
org.apache.hadoop.yarn.util.constraint.PlacementConstraintParser.ConjunctionTokenizer
- All Implemented Interfaces:
Enumeration<String>,PlacementConstraintParser.ConstraintTokenizer
- Enclosing class:
- PlacementConstraintParser
public static final class PlacementConstraintParser.ConjunctionTokenizer
extends Object
implements PlacementConstraintParser.ConstraintTokenizer
Tokenizer used to parse conjunction form of a constraint expression,
[AND|OR](C1:C2:...:Cn). Each Cn is a constraint expression.
-
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
-
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>
-