@Override
    public void formatMappingType(String type, List<String> names) throws IOException {
      writeIndent(false);
      out.write(("mapped for " + type.toLowerCase()).getBytes(StandardCharsets.UTF_8));
      if (!names.isEmpty()) {
        out.write("s: ".getBytes(StandardCharsets.UTF_8));
        int count = Math.min(5, names.size());
        for (int i = 0; i < count; ++i) {
          if (i != 0) {
            out.write(", ".getBytes(StandardCharsets.UTF_8));
          }
          out.write(names.get(i).getBytes(StandardCharsets.UTF_8));
        }
        int remaining = names.size() - count;
        if (remaining > 0) {
          out.write((" and " + remaining + " others").getBytes(StandardCharsets.UTF_8));
        }
      }
      out.write(Utilities.newLineCode);
    }
Class to print text records for resource plans in the following format.

<rp_name>[status=<STATUS>,parallelism=<parallelism>,defaultPool=<defaultPool>]
    <queue_name>[allocFraction=<fraction>,schedulingPolicy=<policy>,parallelism=<parallelism>]
      > <trigger_name>: if(<triggerExpression>){<actionExpression>}
ql/src/java/org/apache/hadoop/hive/ql/ddl/workloadmanagement/resourceplan/show/formatter/TextShowResourcePlanFormatter.java