@SuppressWarnings("serial")
  private ArrayList<Pair<Pattern, String>> initPatternWithMaskComments() {
    return new ArrayList<Pair<Pattern, String>>() {
      {
        add(toPatternPair("(pblob|s3.?|swift|wasb.?).*hive-staging.*",
            "### BLOBSTORE_STAGING_PATH ###"));
        add(toPatternPair(PATH_HDFS_WITH_DATE_USER_GROUP_REGEX, String.format("%s %s$3%s %s $6%s",
            HDFS_USER_MASK, HDFS_GROUP_MASK, HDFS_SIZE_MASK, HDFS_DATE_MASK, HDFS_MASK)));
        add(toPatternPair(PATH_HDFS_WITH_DATE_USER_GROUP_ZERO_SIZE_REGEX, String.format("%s %s$3$4 %s $6%s",
                HDFS_USER_MASK, HDFS_GROUP_MASK, HDFS_DATE_MASK, HDFS_MASK)));
        add(toPatternPair(PATH_HDFS_REGEX, String.format("$1%s", HDFS_MASK)));
        add(toPatternPair("(.*totalSize\\s*=*\\s*)\\d+\\s*(.*)", DATA_SIZE_MASK));
        add(toPatternPair("(.*File raw data size:*\\s*)\\d+\\s*bytes(.*)", DATA_SIZE_MASK));
        add(toPatternPair("((?:totalFileSize|maxFileSize|minFileSize):\\s*)(?!0$)\\d+", FILE_SIZE_MASK));
      }
    };
  }
Pattern to match and (partial) replacement text.
For example, {"transaction":76,"bucketid":8249877}.  We just want to mask 76 but a regex that
matches just 76 will match a lot of other things.
itests/util/src/main/java/org/apache/hadoop/hive/ql/QOutProcessor.java