Package org.apache.hadoop.hbase.quotas
Class SpaceQuotaSnapshot
java.lang.Object
org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshot
- All Implemented Interfaces:
SpaceQuotaSnapshotView
A point-in-time view of a space quota on a table.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Encapsulates the state of a quota on a table.Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotView
SpaceQuotaSnapshotView.SpaceQuotaStatusView
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private static final SpaceQuotaSnapshot
private final SpaceQuotaSnapshot.SpaceQuotaStatus
private final long
-
Constructor Summary
ConstructorDescriptionSpaceQuotaSnapshot
(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getLimit()
Returns the limit, in bytes, of the target (e.g.static SpaceQuotaSnapshot
Returns a singleton that corresponds to no snapshot information.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) toString()
-
Field Details
-
NO_SUCH_SNAPSHOT
-
quotaStatus
-
usage
-
limit
-
-
Constructor Details
-
SpaceQuotaSnapshot
-
-
Method Details
-
getQuotaStatus
Returns the status of the quota.- Specified by:
getQuotaStatus
in interfaceSpaceQuotaSnapshotView
-
getUsage
Returns the current usage, in bytes, of the target (e.g. table, namespace).- Specified by:
getUsage
in interfaceSpaceQuotaSnapshotView
-
getLimit
Returns the limit, in bytes, of the target (e.g. table, namespace).- Specified by:
getLimit
in interfaceSpaceQuotaSnapshotView
-
hashCode
-
equals
-
toString
-
toSpaceQuotaSnapshot
public static SpaceQuotaSnapshot toSpaceQuotaSnapshot(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot proto) -
toProtoSnapshot
public static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshot toProtoSnapshot(SpaceQuotaSnapshot snapshot) -
getNoSuchSnapshot
Returns a singleton that corresponds to no snapshot information.
-