| 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(org.apache.hadoop.hbase.shaded.protobuf.generated.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 org.apache.hadoop.hbase.shaded.protobuf.generated.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(org.apache.hadoop.hbase.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(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceViolationPolicy proto)
Converts a protocol buffer SpaceViolationPolicy to a client SpaceViolationPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
ProtobufUtil.toProtoSpaceQuota(long limit,
SpaceViolationPolicy violationPolicy)
Builds a protocol buffer SpaceQuota.
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceViolationPolicy |
ProtobufUtil.toProtoViolationPolicy(SpaceViolationPolicy policy)
Converts a client SpaceViolationPolicy to a protocol buffer SpaceViolationPolicy.
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.