void persistSnapshotSizesForNamespaces(Map<String, Long> snapshotSizesByNamespace)
    throws IOException {
    try (Table quotaTable = conn.getTable(QuotaUtil.QUOTA_TABLE_NAME)) {
      quotaTable.put(snapshotSizesByNamespace.entrySet().stream()
        .map(e -> QuotaTableUtil.createPutForNamespaceSnapshotSize(e.getKey(), e.getValue()))
        .collect(Collectors.toList()));
    }
  }
Writes the size used by snapshots for each namespace to the quota table.
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/SnapshotQuotaObserverChore.java