@InterfaceAudience.Private @InterfaceStability.Evolving public class UserQuotaState extends QuotaState
| Constructor and Description |
|---|
UserQuotaState() |
UserQuotaState(long updateTs) |
| Modifier and Type | Method and Description |
|---|---|
QuotaLimiter |
getTableLimiter(TableName table)
Return the limiter for the specified table associated with this quota.
|
boolean |
hasBypassGlobals() |
boolean |
isBypass() |
void |
setQuotas(QuotaProtos.Quotas quotas)
Setup the global quota information.
|
void |
setQuotas(String namespace,
QuotaProtos.Quotas quotas)
Add the quota information of the specified namespace.
|
void |
setQuotas(TableName table,
QuotaProtos.Quotas quotas)
Add the quota information of the specified table.
|
String |
toString() |
void |
update(QuotaState other)
Perform an update of the quota state based on the other quota state object.
|
getGlobalLimiter, getLastQuery, getLastUpdate, setLastQuerypublic UserQuotaState()
public UserQuotaState(long updateTs)
public String toString()
toString in class QuotaStatepublic boolean isBypass()
isBypass in class QuotaStatepublic boolean hasBypassGlobals()
public void setQuotas(QuotaProtos.Quotas quotas)
QuotaStatesetQuotas in class QuotaStatepublic void setQuotas(TableName table, QuotaProtos.Quotas quotas)
public void setQuotas(String namespace, QuotaProtos.Quotas quotas)
public void update(QuotaState other)
update in class QuotaStatepublic QuotaLimiter getTableLimiter(TableName table)