private Pair<Query<?>, List<Object[]>> getResultFromInput(List<Long> input,
      String queryText0, String subQ) throws MetaException {
    int size = input.size();
    String queryText = queryText0 + (size == 0 ? "" : repeat(",?", size).substring(1)) + ") " + subQ;
    if (dbType.isMYSQL()) {
      queryText = queryText.replace("\"", "");
    }
    Object[] params = new Object[size];
    for (int i = 0; i < input.size(); ++i) {
      params[i] = input.get(i);
    }
    Deadline.checkTimeout();
    Query<?> query = pm.newQuery("javax.jdo.query.SQL", queryText);
    List<Object[]> result = (List<Object[]>) query.executeWithArray(params);
    return Pair.of(query, result);
  }
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