Class ExtendedLogMetaRequest.ComparisonExpression

java.lang.Object
org.apache.hadoop.yarn.logaggregation.ExtendedLogMetaRequest.ComparisonExpression
Enclosing class:
ExtendedLogMetaRequest

public static class ExtendedLogMetaRequest.ComparisonExpression extends Object
Wraps a comparison logic based on a stringified expression. The format of the expression is: >value = is greater than value <value = is lower than value value = is equal to value
  • Field Details

  • Constructor Details

    • ComparisonExpression

      public ComparisonExpression(String expression)
  • Method Details

    • match

      public boolean match(String value)
    • match

      public boolean match(Long value)
    • match

      public boolean match(Long value, boolean defaultValue)
      Test the given value with the defined comparison functions based on stringified expression.
      Parameters:
      value - value to test with
      defaultValue - value to return when no expression was defined
      Returns:
      comparison test result or the given default value
    • toString

      public String toString()
      Overrides:
      toString in class Object