All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
protected static Result |
doGet(Connection connection,
Get get) |
protected static Result[] |
doGet(Connection connection,
List<Get> gets) |
static void |
extractQuotaSnapshot(Result result,
Map<TableName,SpaceQuotaSnapshot> snapshots)
|
protected static String |
extractSnapshotNameFromSizeCell(Cell c) |
protected static long |
extractSnapshotSize(byte[] data,
int offset,
int length) |
static SpaceQuotaSnapshot |
getCurrentSnapshotFromQuotaTable(Connection conn,
TableName tableName)
Returns the current space quota snapshot of the given tableName from
QuotaTableUtil.QUOTA_TABLE_NAME or null if the no quota information is available for
that tableName.
|
protected static byte[] |
getExceedThrottleQuotaRowKey() |
protected static String |
getNamespaceFromRowKey(byte[] key) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getNamespaceQuota(Connection connection,
String namespace) |
protected static byte[] |
getNamespaceRowKey(String namespace) |
protected static String |
getNamespaceRowKeyRegex(String namespace) |
static Set<String> |
getNamespaceSnapshots(Connection conn)
Returns a set of the names of all namespaces containing snapshot entries.
|
static Map<String,Long> |
getObservedSnapshotSizes(Connection conn)
Fetches any persisted HBase snapshot sizes stored in the quota table.
|
protected static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota |
getProtoViolationPolicy(SpaceViolationPolicy policy) |
protected static String |
getRegionServerFromRowKey(byte[] key) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getRegionServerQuota(Connection connection,
String regionServer) |
protected static byte[] |
getRegionServerRowKey(String regionServer) |
protected static byte[] |
getSettingsQualifierForUserNamespace(String namespace) |
protected static byte[] |
getSettingsQualifierForUserTable(TableName tableName) |
protected static String |
getSettingsQualifierRegexForUserNamespace(String namespace) |
protected static String |
getSettingsQualifierRegexForUserTable(String table) |
static Map<TableName,SpaceQuotaSnapshot> |
getSnapshots(Connection conn)
|
protected static byte[] |
getSnapshotSizeQualifier(String snapshotName) |
protected static TableName |
getTableFromRowKey(byte[] key) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getTableQuota(Connection connection,
TableName table) |
protected static byte[] |
getTableRowKey(TableName table) |
protected static String |
getTableRowKeyRegex(String table) |
static org.apache.hbase.thirdparty.com.google.common.collect.Multimap<TableName,String> |
getTableSnapshots(Connection conn)
Returns a multimap for all existing table snapshot entries.
|
protected static String |
getUserFromRowKey(byte[] key) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getUserQuota(Connection connection,
String user) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getUserQuota(Connection connection,
String user,
String namespace) |
static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
getUserQuota(Connection connection,
String user,
TableName table) |
protected static byte[] |
getUserRowKey(String user) |
protected static String |
getUserRowKeyRegex(String user) |
protected static SpaceViolationPolicy |
getViolationPolicy(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.SpaceQuota proto) |
static boolean |
isEmptyQuota(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas quotas) |
protected static boolean |
isNamespaceRowKey(byte[] key) |
protected static boolean |
isRegionServerRowKey(byte[] key) |
protected static boolean |
isTableRowKey(byte[] key) |
protected static boolean |
isUserRowKey(byte[] key) |
static Filter |
makeFilter(QuotaFilter filter)
converts quotafilter to serializeable filterlists.
|
static Get |
makeGetForNamespaceQuotas(String namespace) |
static Get |
makeGetForRegionServerQuotas(String regionServer) |
static Get |
makeGetForTableQuotas(TableName table) |
static Get |
makeGetForUserQuotas(String user,
Iterable<TableName> tables,
Iterable<String> namespaces) |
static Get |
makeQuotaSnapshotGetForTable(TableName tn)
|
static Scan |
makeQuotaSnapshotScan()
Creates a Scan which returns only quota snapshots from the quota table.
|
static Scan |
makeQuotaSnapshotScanForTable(TableName tn)
|
static Scan |
makeScan(QuotaFilter filter) |
static void |
parseNamespaceResult(Result result,
QuotaTableUtil.NamespaceQuotasVisitor visitor) |
protected static void |
parseNamespaceResult(String namespace,
Result result,
QuotaTableUtil.NamespaceQuotasVisitor visitor) |
static void |
parseResult(Result result,
QuotaTableUtil.QuotasVisitor visitor) |
static void |
parseResultToCollection(Result result,
Collection<QuotaSettings> quotaSettings) |
static void |
parseTableResult(Result result,
QuotaTableUtil.TableQuotasVisitor visitor) |
protected static void |
parseTableResult(TableName table,
Result result,
QuotaTableUtil.TableQuotasVisitor visitor) |
static void |
parseUserResult(Result result,
QuotaTableUtil.UserQuotasVisitor visitor) |
protected static void |
parseUserResult(String userName,
Result result,
QuotaTableUtil.UserQuotasVisitor visitor) |
protected static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
quotasFromData(byte[] data) |
protected static org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas |
quotasFromData(byte[] data,
int offset,
int length) |
protected static byte[] |
quotasToData(org.apache.hadoop.hbase.shaded.protobuf.generated.QuotaProtos.Quotas data) |