Class StringAttributeValue
java.lang.Object
org.apache.hadoop.yarn.nodelabels.StringAttributeValue
- All Implemented Interfaces:
AttributeValue
Attribute value for String NodeAttributeType.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare the value against the other based on the AttributeExpressionOperation.getValue()toString()voidvalidateAndInitializeValue(String valueStr) validate the value based on the type and initialize for further compare operations.
-
Constructor Details
-
StringAttributeValue
public StringAttributeValue()
-
-
Method Details
-
compareForOperation
Description copied from interface:AttributeValuecompare the value against the other based on the AttributeExpressionOperation.- Specified by:
compareForOperationin interfaceAttributeValue- Parameters:
other- attribute value.op- attribute expression operation.- Returns:
- true if value
othermatches the current value for the operationop.
-
validateAndInitializeValue
Description copied from interface:AttributeValuevalidate the value based on the type and initialize for further compare operations.- Specified by:
validateAndInitializeValuein interfaceAttributeValue- Parameters:
valueStr- value.- Throws:
IOException- io error occur.
-
getValue
- Specified by:
getValuein interfaceAttributeValue- Returns:
- original value which was set.
-
toString
-