Class MappingRuleMatchers.AndMatcher

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

public static class MappingRuleMatchers.AndMatcher extends Object implements MappingRuleMatcher
AndMatcher is a basic boolean matcher which takes multiple other matcher as it's arguments, and on match it checks if all 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 all match we return true.
      Specified by:
      match in interface MappingRuleMatcher
      Parameters:
      variables - The variable context, which contains all the variables
      Returns:
      true if all matchers match
    • toString

      public String toString()
      Overrides:
      toString in class Object