public static Multimap<TableName, String> getTableSnapshots(Connection conn) throws IOException {
    try (Table quotaTable = conn.getTable(QUOTA_TABLE_NAME);
      ResultScanner rs = quotaTable.getScanner(createScanForSpaceSnapshotSizes())) {
      Multimap<TableName, String> snapshots = HashMultimap.create();
      for (Result r : rs) {
        CellScanner cs = r.cellScanner();
        while (cs.advance()) {
          Cell c = cs.current();

          final String snapshot = extractSnapshotNameFromSizeCell(c);
          snapshots.put(getTableFromRowKey(r.getRow()), snapshot);
        }
      }
      return snapshots;
    }
  }
Returns a multimap for all existing table snapshot entries.
@param conn connection to re-use
hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaTableUtil.java