Class MappingRuleMatchers.OrMatcher

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleMatchers.OrMatcher
All Implemented Interfaces:
MappingRuleMatcher
Enclosing class:
MappingRuleMatchers

public static class MappingRuleMatchers.OrMatcher extends Object implements MappingRuleMatcher
OrMatcher is a basic boolean matcher which takes multiple other matcher as its arguments, and on match it checks if any of them are true.
  • Method Details

    • match

      public boolean match(VariableContext variables)
      This match method will go through all the provided matchers and call their match method, if any of them match we return true.
      Specified by:
      match in interface MappingRuleMatcher
      Parameters:
      variables - The variable context, which contains all the variables
      Returns:
      true if any of the matchers match
    • toString

      public String toString()
      Overrides:
      toString in class Object