static String printFileStatus(FileStatus[] stat) {
    StringBuilder sb = new StringBuilder("stat{");
    if (stat == null) {
      return sb.toString();
    }
    for (FileStatus f : stat) {
      sb.append(f.getPath()).append(",");
    }
    sb.setCharAt(sb.length() - 1, '}');
    return sb.toString();
  }
Turn a list of file statuses into string.
@param stat list of files
@return string value
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/txn/compactor/CompactorTestUtil.java