public RegexFilterSet addFilter(String regex, int flags, String replacement) {
      regexFilters.add(new Filter(Pattern.compile(regex, flags), replacement));
      return this;
    }
Overwrite the golden file with the generated output
@throws IOException If there is a problem accessing the golden or generated file
itests/util/src/main/java/org/apache/hive/beeline/QFile.java