static class QuotaObserverChore.TablesWithQuotas extends Object
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private Connection |
conn |
private Set<TableName> |
tablesWithNamespaceQuotas |
private Set<TableName> |
tablesWithTableQuotas |
Constructor and Description |
---|
TablesWithQuotas(Connection conn,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addNamespaceQuotaTable(TableName tn)
Adds a table with a namespace quota.
|
void |
addTableQuotaTable(TableName tn)
Adds a table with a table quota.
|
Set<TableName> |
filterInsufficientlyReportedTables(QuotaSnapshotStore<TableName> tableStore)
Filters out all tables for which the Master currently doesn't have enough region space
reports received from RegionServers yet.
|
(package private) org.apache.hadoop.conf.Configuration |
getConfiguration() |
Set<TableName> |
getNamespaceQuotaTables()
Returns an unmodifiable view of all tables in namespaces that have
namespace quotas.
|
Set<String> |
getNamespacesWithQuotas() |
(package private) int |
getNumRegions(TableName table)
Computes the total number of regions in a table.
|
(package private) int |
getNumReportedRegions(TableName table,
QuotaSnapshotStore<TableName> tableStore)
Computes the number of regions reported for a table.
|
Set<TableName> |
getTableQuotaTables()
Returns an unmodifiable view of all tables with table quotas.
|
org.apache.hbase.thirdparty.com.google.common.collect.Multimap<String,TableName> |
getTablesByNamespace()
Returns a view of all tables that reside in a namespace with a namespace
quota, grouped by the namespace itself.
|
boolean |
hasNamespaceQuota(TableName tn)
Returns true if the table exists in a namespace with a namespace quota.
|
boolean |
hasTableQuota(TableName tn)
Returns true if the given table has a table quota.
|
String |
toString() |
private final Set<TableName> tablesWithTableQuotas
private final Set<TableName> tablesWithNamespaceQuotas
private final Connection conn
private final org.apache.hadoop.conf.Configuration conf
public TablesWithQuotas(Connection conn, org.apache.hadoop.conf.Configuration conf)
org.apache.hadoop.conf.Configuration getConfiguration()
public void addTableQuotaTable(TableName tn)
public void addNamespaceQuotaTable(TableName tn)
public boolean hasTableQuota(TableName tn)
public boolean hasNamespaceQuota(TableName tn)
public Set<TableName> getTableQuotaTables()
public Set<TableName> getNamespaceQuotaTables()
public Set<String> getNamespacesWithQuotas()
public org.apache.hbase.thirdparty.com.google.common.collect.Multimap<String,TableName> getTablesByNamespace()
public Set<TableName> filterInsufficientlyReportedTables(QuotaSnapshotStore<TableName> tableStore) throws IOException
IOException
int getNumRegions(TableName table) throws IOException
IOException
int getNumReportedRegions(TableName table, QuotaSnapshotStore<TableName> tableStore) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.