ExtendedLogMetaRequest.ComparisonCollection (Apache Hadoop YARN Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.logaggregation, class: ExtendedLogMetaRequest, class: ComparisonCollection

Package org.apache.hadoop.yarn.logaggregation

# 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 Summary

  Constructors
  Constructor
  Description
  `ComparisonCollection(Set<String> expressions)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `match(Long value)`
  `boolean`
  `match(Long value, boolean defaultValue)`
  Checks, if the given value matches all the `ComparisonExpression`.
  `boolean`
  `match(String value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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