Package org.apache.hadoop.hbase.quotas
Enum Class SpaceViolationPolicy
- All Implemented Interfaces:
Serializable
,Comparable<SpaceViolationPolicy>
,Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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 class with the specified name.static SpaceViolationPolicy[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-