@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, setLastQuery
public UserQuotaState()
public UserQuotaState(long updateTs)
public String toString()
toString
in class QuotaState
public boolean isBypass()
isBypass
in class QuotaState
public boolean hasBypassGlobals()
public void setQuotas(QuotaProtos.Quotas quotas)
QuotaState
setQuotas
in class QuotaState
public void setQuotas(TableName table, QuotaProtos.Quotas quotas)
public void setQuotas(String namespace, QuotaProtos.Quotas quotas)
public void update(QuotaState other)
update
in class QuotaState
public QuotaLimiter getTableLimiter(TableName table)