@InterfaceAudience.Private public class SpaceQuotaSnapshot extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SpaceQuotaSnapshot.SpaceQuotaStatus
Encapsulates the state of a quota on a table.
|
| Constructor and Description |
|---|
SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus,
long usage,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getLimit()
Returns the limit, in bytes, of the target (e.g.
|
static SpaceQuotaSnapshot |
getNoSuchSnapshot() |
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 QuotaProtos.SpaceQuotaSnapshot |
toProtoSnapshot(SpaceQuotaSnapshot snapshot) |
static SpaceQuotaSnapshot |
toSpaceQuotaSnapshot(QuotaProtos.SpaceQuotaSnapshot proto) |
java.lang.String |
toString() |
public SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit)
public SpaceQuotaSnapshot.SpaceQuotaStatus getQuotaStatus()
public long getUsage()
public long getLimit()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static SpaceQuotaSnapshot toSpaceQuotaSnapshot(QuotaProtos.SpaceQuotaSnapshot proto)
public static QuotaProtos.SpaceQuotaSnapshot toProtoSnapshot(SpaceQuotaSnapshot snapshot)
public static SpaceQuotaSnapshot getNoSuchSnapshot()