private void collectTabFormatSummary(List<Long> transactionalTables, Long tableId,
      MetadataTableSummary summary, String slib, String compressionType) {
    String tblType = summary.getTableType();
    String fileType = TableFormat.extractFileFormat(slib);
    Set<String> nonNativeTabTypes = TableFormat.getNonNativeFormats();
    if (nonNativeTabTypes.contains(fileType)) {
      tblType = fileType.toUpperCase();
    } else if (TableType.MANAGED_TABLE.name().equalsIgnoreCase(tblType)) {
      tblType = "HIVE_ACID_FULL";
      transactionalTables.add(tableId);
    } else if (TableType.EXTERNAL_TABLE.name().equalsIgnoreCase(tblType)) {
      tblType = "HIVE_EXTERNAL";
    } else {
      tblType = tblType != null ? tblType.toUpperCase() : "NULL";
    }
    if (compressionType.equals("0") || compressionType.equals("f")) {
      compressionType = "None";
    }
    summary.tableFormatSummary(tblType, compressionType, fileType);
  }
Using resultSet to read the HMS_SUMMARY table.
@param catalogFilter the optional catalog name filter
@param dbFilter the optional database name filter
@param tableFilter the optional table name filter
@return MetadataSummary
@throws MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/MetaToolObjectStore.java