@Override
    public void formatTrigger(String triggerName, String actionExpression, String triggerExpression)
        throws IOException {
      writeIndent(false);
      String triggerText =
          String.format("trigger %s: if (%s) { %s }", triggerName, triggerExpression, actionExpression);
      out.write(triggerText.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