@InterfaceAudience.Private public class TableQuotaSnapshotStore extends Object implements QuotaSnapshotStore<TableName>
QuotaSnapshotStore for tables.NO_QUOTA| 构造器和说明 |
|---|
TableQuotaSnapshotStore(Connection conn,
QuotaObserverChore chore,
Map<RegionInfo,Long> regionUsage) |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterable<Map.Entry<RegionInfo,Long>> |
filterBySubject(TableName table)
Filters the provided
regions, returning those which match the given
subject. |
SpaceQuotaSnapshot |
getCurrentState(TableName table)
Returns the current
SpaceQuotaSnapshot for the given subject. |
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
getSpaceQuota(TableName subject)
Fetch the Quota for the given
subject. |
SpaceQuotaSnapshot |
getTargetState(TableName table,
org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceQuota)
|
void |
setCurrentState(TableName table,
SpaceQuotaSnapshot snapshot)
Persists the current
SpaceQuotaSnapshot for the subject. |
void |
setRegionUsage(Map<RegionInfo,Long> regionUsage)
Updates
this with the latest snapshot of filesystem use by region. |
public TableQuotaSnapshotStore(Connection conn, QuotaObserverChore chore, Map<RegionInfo,Long> regionUsage)
public org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota getSpaceQuota(TableName subject) throws IOException
QuotaSnapshotStoresubject. May be null.getSpaceQuota 在接口中 QuotaSnapshotStore<TableName>subject - The object for which the quota should be fetchedIOExceptionpublic SpaceQuotaSnapshot getCurrentState(TableName table)
QuotaSnapshotStoreSpaceQuotaSnapshot for the given subject.getCurrentState 在接口中 QuotaSnapshotStore<TableName>table - The object which the quota snapshot should be fetchedpublic SpaceQuotaSnapshot getTargetState(TableName table, org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota spaceQuota) throws IOException
QuotaSnapshotStoregetTargetState 在接口中 QuotaSnapshotStore<TableName>table - The object which to determine the target SpaceQuotaSnapshot ofspaceQuota - The quota "definition" for the subjectIOExceptionpublic Iterable<Map.Entry<RegionInfo,Long>> filterBySubject(TableName table)
QuotaSnapshotStoreregions, returning those which match the given
subject.filterBySubject 在接口中 QuotaSnapshotStore<TableName>table - The filter criteria. Only regions belonging to this parameter will be returnedpublic void setCurrentState(TableName table, SpaceQuotaSnapshot snapshot)
QuotaSnapshotStoreSpaceQuotaSnapshot for the subject.setCurrentState 在接口中 QuotaSnapshotStore<TableName>table - The object which the SpaceQuotaSnapshot is being persisted forsnapshot - The current state of the subjectpublic void setRegionUsage(Map<RegionInfo,Long> regionUsage)
QuotaSnapshotStorethis with the latest snapshot of filesystem use by region.setRegionUsage 在接口中 QuotaSnapshotStore<TableName>regionUsage - A map of RegionInfo objects to their filesystem usage in bytesCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.