public static Map<String, QuotaState> fetchNamespaceQuotas(final Connection connection, final List<Get> gets) throws IOException { return fetchGlobalQuotas("namespace", connection, gets, new KeyFromRow<String>() { @Override public String getKeyFromRow(final byte[] row) { assert isNamespaceRowKey(row); return getNamespaceFromRowKey(row); } }); }
public static Map<String, QuotaState> fetchRegionServerQuotas(final Connection connection, final List<Get> gets) throws IOException { return fetchGlobalQuotas("regionServer", connection, gets, new KeyFromRow<String>() { @Override public String getKeyFromRow(final byte[] row) { assert isRegionServerRowKey(row); return getRegionServerFromRowKey(row); } }); }
public static Map<TableName, QuotaState> fetchTableQuotas(final Connection connection, final List<Get> gets) throws IOException { return fetchGlobalQuotas("table", connection, gets, new KeyFromRow<TableName>() { @Override public TableName getKeyFromRow(final byte[] row) { assert isTableRowKey(row); return getTableFromRowKey(row); } }); }
public static Map<TableName, QuotaState> fetchTableQuotas(final Connection connection, final List<Get> gets) throws IOException { return fetchGlobalQuotas("table", connection, gets, new KeyFromRow<TableName>() { @Override public TableName getKeyFromRow(final byte[] row) { assert isTableRowKey(row); return getTableFromRowKey(row); } }); }
public static Map<String, QuotaState> fetchNamespaceQuotas(final Connection connection, final List<Get> gets) throws IOException { return fetchGlobalQuotas("namespace", connection, gets, new KeyFromRow<String>() { @Override public String getKeyFromRow(final byte[] row) { assert isNamespaceRowKey(row); return getNamespaceFromRowKey(row); } }); }