private void collectBasicStats(String queryText0, List<Long> input, Map<Long, MetadataTableSummary> summaries, String subQ)
      throws MetaException {
    Pair<Query<?>, List<Object[]>> qResult = getResultFromInput(input, queryText0, subQ);
    try {
      List<Object[]> result = qResult.getRight();
      if (result != null) {
        for (Object[] fields : result) {
          Deadline.checkTimeout();
          Long tabId = Long.parseLong(String.valueOf(fields[0]));
          MetadataTableSummary summary = summaries.get(tabId);
          feedBasicStats(summary, String.valueOf(fields[1]), fields[2]);
        }
      }
    } finally {
      qResult.getLeft().closeAll();
    }
  }
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