@InterfaceAudience.Public public abstract class QuotaSettings extends Object
Modifier | Constructor and Description |
---|---|
protected |
QuotaSettings(String userName,
TableName tableName,
String namespace) |
Modifier and Type | Method and Description |
---|---|
static QuotaSettings |
buildFromProto(MasterProtos.SetQuotaRequest request)
Converts the protocol buffer request into a QuotaSetting POJO.
|
static MasterProtos.SetQuotaRequest |
buildSetQuotaRequestProto(QuotaSettings settings)
Convert a QuotaSettings to a protocol buffer SetQuotaRequest.
|
String |
getNamespace() |
abstract QuotaType |
getQuotaType() |
TableName |
getTableName() |
String |
getUserName() |
protected String |
ownerToString() |
protected abstract void |
setupSetQuotaRequest(MasterProtos.SetQuotaRequest.Builder builder)
Called by toSetQuotaRequestProto()
the subclass should implement this method to set the specific SetQuotaRequest
properties.
|
protected static String |
sizeToString(long size) |
protected static String |
timeToString(TimeUnit timeUnit) |
public abstract QuotaType getQuotaType()
public String getUserName()
public TableName getTableName()
public String getNamespace()
@InterfaceAudience.Private public static QuotaSettings buildFromProto(MasterProtos.SetQuotaRequest request)
request
- The protocol buffer request.QuotaSettings
POJO.@InterfaceAudience.Private public static MasterProtos.SetQuotaRequest buildSetQuotaRequestProto(QuotaSettings settings)
@InterfaceAudience.Private protected abstract void setupSetQuotaRequest(MasterProtos.SetQuotaRequest.Builder builder)
protected String ownerToString()
protected static String sizeToString(long size)
Copyright © 2007–2019 Cloudera. All rights reserved.