@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
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() |
public SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit)
public SpaceQuotaSnapshot.SpaceQuotaStatus getQuotaStatus()
getQuotaStatus
in interface SpaceQuotaSnapshotView
public long getUsage()
getUsage
in interface SpaceQuotaSnapshotView
public long getLimit()
getLimit
in interface SpaceQuotaSnapshotView
public 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–2021 The Apache Software Foundation. All rights reserved.