Package org.apache.hadoop.hbase.quotas
Enum SpaceViolationPolicy
- All Implemented Interfaces:
Serializable
,Comparable<SpaceViolationPolicy>
Enumeration that represents the action HBase will take when a space quota is violated. The target
for a violation policy is either an HBase table or namespace. In the case of a namespace, it is
treated as a collection of tables (all tables are subject to the same policy).
-
Enum Constant Summary
Enum ConstantDescriptionDisables the table(s).Disallows any updates (but allows deletes and compactions) on the table(s).Disallows any mutations (but allows compactions) on the table(s).Disallows any mutations or compactions on the table(s). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpaceViolationPolicy
Returns the enum constant of this type with the specified name.static SpaceViolationPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISABLE
Disables the table(s). -
NO_WRITES_COMPACTIONS
Disallows any mutations or compactions on the table(s). -
NO_WRITES
Disallows any mutations (but allows compactions) on the table(s). -
NO_INSERTS
Disallows any updates (but allows deletes and compactions) on the table(s).
-
-
Constructor Details
-
SpaceViolationPolicy
private SpaceViolationPolicy()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-