Class ExtendedLogMetaRequest.ComparisonCollection

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

public static class ExtendedLogMetaRequest.ComparisonCollection extends Object
A collection of ComparisonExpression.
  • Constructor Details

    • ComparisonCollection

      public ComparisonCollection(Set<String> expressions)
  • Method Details

    • match

      public boolean match(Long value)
    • match

      public boolean match(String value)
    • match

      public boolean match(Long value, boolean defaultValue)
      Checks, if the given value matches all the ComparisonExpression. This implies an AND logic between the expressions.
      Parameters:
      value - given value to match against
      defaultValue - default value to return when no expression is defined
      Returns:
      whether all expressions were matched