public void filterOutput() throws IOException {
    String output = FileUtils.readFileToString(rawOutputFile, "UTF-8");
    if (comparePortable) {
      output = portableFilterSet.filter(output);
    }
    output = staticFilterSet.filter(specificFilterSet.filter(output));
    if (!useSharedDatabase) {
      output = sortInputOutput(revertReplaceTableNames(output));
    }
    FileUtils.writeStringToFile(outputFile, output);
  }
Filters the generated output file
@throws IOException
itests/util/src/main/java/org/apache/hive/beeline/QFile.java