Package | Description |
---|---|
org.apache.hadoop.hbase.quotas | |
org.apache.hadoop.hbase.shaded.protobuf |
Modifier and Type | Method and Description |
---|---|
SpaceViolationPolicy |
SpaceQuotaSnapshot.SpaceQuotaStatus.getPolicy()
Returns the violation policy, which may be null.
|
protected static SpaceViolationPolicy |
QuotaTableUtil.getViolationPolicy(QuotaProtos.SpaceQuota proto) |
static SpaceViolationPolicy |
SpaceViolationPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpaceViolationPolicy[] |
SpaceViolationPolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected static QuotaProtos.SpaceQuota |
QuotaTableUtil.getProtoViolationPolicy(SpaceViolationPolicy policy) |
static QuotaSettings |
QuotaSettingsFactory.limitNamespaceSpace(String namespace,
long sizeLimit,
SpaceViolationPolicy violationPolicy)
Creates a
QuotaSettings object to limit the FileSystem space usage for the given
namespace to the given size in bytes. |
static QuotaSettings |
QuotaSettingsFactory.limitTableSpace(TableName tableName,
long sizeLimit,
SpaceViolationPolicy violationPolicy)
Creates a
QuotaSettings object to limit the FileSystem space usage for the given table
to the given size in bytes. |
Constructor and Description |
---|
SpaceQuotaStatus(SpaceViolationPolicy policy)
Constructs a
SpaceQuotaSnapshot which is in violation of the provided policy . |
Modifier and Type | Method and Description |
---|---|
static SpaceViolationPolicy |
ProtobufUtil.toViolationPolicy(QuotaProtos.SpaceViolationPolicy proto)
Converts a protocol buffer SpaceViolationPolicy to a client SpaceViolationPolicy.
|
Modifier and Type | Method and Description |
---|---|
static QuotaProtos.SpaceQuota |
ProtobufUtil.toProtoSpaceQuota(long limit,
SpaceViolationPolicy violationPolicy)
Builds a protocol buffer SpaceQuota.
|
static QuotaProtos.SpaceViolationPolicy |
ProtobufUtil.toProtoViolationPolicy(SpaceViolationPolicy policy)
Converts a client SpaceViolationPolicy to a protocol buffer SpaceViolationPolicy.
|
Copyright © 2007–2019 Cloudera. All rights reserved.