class TagSelector extends AbstractResourcePoolSelector {

  @Override
  public boolean isQuerySelected(QueryContext queryContext) {
    String[] queryTags = queryContext.getOption(ExecConstants.RM_QUERY_TAGS_KEY).string_val.split(",");
    for (String queryTag : queryTags) {
      if (queryTag.equals(configuredTag)) {
        logger.debug("Query {} tag {} matches the selector tag {}", queryContext.getQueryId(), queryTag, configuredTag);
        return true;
      }
    }
    return false;
  }

    TagSelector(String selectorValue);

}