private static boolean isExplicitPoolMatch(MappingInput input, Mapping mapping) {
    return input.wmPool != null && input.wmPool.equals(mapping.fullPoolName);
  }
Contains all the information necessary to map a query to a pool.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/UserPoolMapping.java