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
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulates the state of a quota on a table.Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.quotas.SpaceQuotaSnapshotView
SpaceQuotaSnapshotView.SpaceQuotaStatusView -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate static final SpaceQuotaSnapshotprivate final SpaceQuotaSnapshot.SpaceQuotaStatusprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionSpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetLimit()Returns the limit, in bytes, of the target (e.g.static SpaceQuotaSnapshotReturns a singleton that corresponds to no snapshot information.Returns the status of the quota.longgetUsage()Returns the current usage, in bytes, of the target (e.g.inthashCode()static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuotaSnapshottoProtoSnapshot(SpaceQuotaSnapshot snapshot) static SpaceQuotaSnapshottoSpaceQuotaSnapshot(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:
getQuotaStatusin interfaceSpaceQuotaSnapshotView
-
getUsage
Returns the current usage, in bytes, of the target (e.g. table, namespace).- Specified by:
getUsagein interfaceSpaceQuotaSnapshotView
-
getLimit
Returns the limit, in bytes, of the target (e.g. table, namespace).- Specified by:
getLimitin 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.
-