@InterfaceAudience.Private public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings
GlobalQuotaSettings to hide the Protobuf messages we use internally.| Modifier | Constructor and Description |
|---|---|
protected |
GlobalQuotaSettingsImpl(String username,
TableName tableName,
String namespace,
QuotaProtos.Quotas quotas) |
protected |
GlobalQuotaSettingsImpl(String userName,
TableName tableName,
String namespace,
QuotaProtos.Throttle throttleProto,
Boolean bypassGlobals,
QuotaProtos.SpaceQuota spaceProto) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
getBypassGlobals() |
List<QuotaSettings> |
getQuotaSettings()
Computes a list of QuotaSettings that present the complete quota state of the combination of
this user, table, and/or namespace.
|
protected QuotaProtos.SpaceQuota |
getSpaceProto() |
protected QuotaProtos.Throttle |
getThrottleProto() |
protected GlobalQuotaSettingsImpl |
merge(QuotaSettings other)
Merges the provided settings with
this and returns a new settings
object to the caller if the merged settings differ from the original. |
protected QuotaProtos.Quotas |
toQuotas()
Constructs a new
QuotaProtos.Quotas message from this. |
String |
toString() |
getQuotaType, setupSetQuotaRequestbuildFromProto, buildSetQuotaRequestProto, getNamespace, getTableName, getUserName, ownerToString, sizeToString, timeToStringprotected GlobalQuotaSettingsImpl(String username, TableName tableName, String namespace, QuotaProtos.Quotas quotas)
protected GlobalQuotaSettingsImpl(String userName, TableName tableName, String namespace, QuotaProtos.Throttle throttleProto, Boolean bypassGlobals, QuotaProtos.SpaceQuota spaceProto)
public List<QuotaSettings> getQuotaSettings()
GlobalQuotaSettingsgetQuotaSettings in class GlobalQuotaSettingsprotected QuotaProtos.Throttle getThrottleProto()
protected Boolean getBypassGlobals()
protected QuotaProtos.SpaceQuota getSpaceProto()
protected QuotaProtos.Quotas toQuotas()
QuotaProtos.Quotas message from this.protected GlobalQuotaSettingsImpl merge(QuotaSettings other) throws IOException
QuotaSettingsthis and returns a new settings
object to the caller if the merged settings differ from the original.other - The new settings to merge in.QuotaSettings object or null if the quota should be deleted.IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.