private void feedBasicStats(MetadataTableSummary summary, String key, Object value) {
    if (summary == null || value == null ||
        !org.apache.commons.lang3.StringUtils.isNumeric(value.toString())) {
      return;
    }
    long val = Long.parseLong(value.toString());
    switch (key) {
    case StatsSetupConst.TOTAL_SIZE:
      summary.setTotalSize(val);
      break;
    case StatsSetupConst.ROW_COUNT:
      summary.setNumRows(val);
      break;
    case StatsSetupConst.NUM_FILES:
      summary.setNumFiles(val);
      break;
    default:
      throw new AssertionError("This should never happen!");
    }
  }
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