@InterfaceAudience.Private public class SpaceQuotaSnapshot extends Object implements SpaceQuotaSnapshotView
| Modifier and Type | Class and Description |
|---|---|
static class |
SpaceQuotaSnapshot.SpaceQuotaStatus
Encapsulates the state of a quota on a table.
|
SpaceQuotaSnapshotView.SpaceQuotaStatusView| Modifier and Type | Field and Description |
|---|---|
private long |
limit |
private static SpaceQuotaSnapshot |
NO_SUCH_SNAPSHOT |
private SpaceQuotaSnapshot.SpaceQuotaStatus |
quotaStatus |
private long |
usage |
| Constructor and Description |
|---|
SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus,
long usage,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getLimit()
Returns the limit, in bytes, of the target (e.g.
|
static SpaceQuotaSnapshot |
getNoSuchSnapshot()
Returns a singleton that corresponds to no snapshot information.
|
SpaceQuotaSnapshot.SpaceQuotaStatus |
getQuotaStatus()
Returns the status of the quota.
|
long |
getUsage()
Returns the current usage, in bytes, of the target (e.g.
|
int |
hashCode() |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot |
toProtoSnapshot(SpaceQuotaSnapshot snapshot) |
static SpaceQuotaSnapshot |
toSpaceQuotaSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot proto) |
String |
toString() |
private static final SpaceQuotaSnapshot NO_SUCH_SNAPSHOT
private final SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus
private final long usage
private final long limit
public SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit)
public SpaceQuotaSnapshot.SpaceQuotaStatus getQuotaStatus()
getQuotaStatus in interface SpaceQuotaSnapshotViewpublic long getUsage()
getUsage in interface SpaceQuotaSnapshotViewpublic long getLimit()
getLimit in interface SpaceQuotaSnapshotViewpublic static SpaceQuotaSnapshot toSpaceQuotaSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot proto)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot toProtoSnapshot(SpaceQuotaSnapshot snapshot)
public static SpaceQuotaSnapshot getNoSuchSnapshot()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.