private void putFileSystemStats(MapBuilder builder, List<Path> locations, HiveConf conf, Path tablePath)
      throws IOException {
    FileData fileData = getFileData(conf, locations, tablePath);

    builder
      .put("totalNumberFiles", fileData.numOfFiles,       !fileData.unknown)
      .put("totalFileSize",    fileData.totalFileSize,    !fileData.unknown)
      .put("maxFileSize",      fileData.maxFileSize,      !fileData.unknown)
      .put("minFileSize",      fileData.getMinFileSize(), !fileData.unknown)
      .put("lastAccessTime",   fileData.lastAccessTime,   !(fileData.unknown || fileData.lastAccessTime < 0))
      .put("lastUpdateTime",   fileData.lastUpdateTime,   !fileData.unknown);
  }
Formats SHOW TABLE STATUS commands to json format.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/info/show/status/formatter/JsonShowTableStatusFormatter.java