@InterfaceAudience.Private public class SpaceQuotaSnapshot extends 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(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 QuotaProtos.SpaceQuotaSnapshot |
toProtoSnapshot(SpaceQuotaSnapshot snapshot) |
static SpaceQuotaSnapshot |
toSpaceQuotaSnapshot(QuotaProtos.SpaceQuotaSnapshot proto) |
String |
toString() |
public SpaceQuotaSnapshot(SpaceQuotaSnapshot.SpaceQuotaStatus quotaStatus, long usage, long limit)
public SpaceQuotaSnapshot.SpaceQuotaStatus getQuotaStatus()
public long getUsage()
public long getLimit()
public static SpaceQuotaSnapshot toSpaceQuotaSnapshot(QuotaProtos.SpaceQuotaSnapshot proto)
public static QuotaProtos.SpaceQuotaSnapshot toProtoSnapshot(SpaceQuotaSnapshot snapshot)
public static SpaceQuotaSnapshot getNoSuchSnapshot()
Copyright © 2007–2019 Cloudera. All rights reserved.