AttributeValue (Apache Hadoop YARN Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.nodelabels, interface: AttributeValue

Package org.apache.hadoop.yarn.nodelabels

# Interface AttributeValue

All Known Implementing Classes:
  `StringAttributeValue`

public interface AttributeValue
Interface to capture operations on AttributeValue.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `compareForOperation(AttributeValue other, AttributeExpressionOperation op)`
  compare the value against the other based on the AttributeExpressionOperation.
  `String`
  `getValue()`
  `void`
  `validateAndInitializeValue(String value)`
  validate the value based on the type and initialize for further compare operations.

- ## Method Details

  - ### getValue

    String getValue()
    Returns:
      original value which was set.

  - ### validateAndInitializeValue

    void validateAndInitializeValue(String value) throws IOException
    validate the value based on the type and initialize for further compare operations.
    Parameters:
      `value` - value.
    Throws:
      `IOException` - io error occur.

  - ### compareForOperation

    boolean compareForOperation(AttributeValue other, AttributeExpressionOperation op)
    compare the value against the other based on the AttributeExpressionOperation.
    Parameters:
      `other` - attribute value.
      `op` - attribute expression operation.
    Returns:
      true if value `other` matches the current value for the operation `op`.