Package | Description |
---|---|
org.apache.hadoop.hbase.constraint |
Restrict the domain of a data attribute, often times to fulfill business rules/requirements.
|
Modifier and Type | Class and Description |
---|---|
class |
AllFailConstraint
Always fail the put.
|
class |
AllPassConstraint
Simple test constraint that always allows the put to pass
|
class |
BaseConstraint
Base class to use when actually implementing a
Constraint . |
class |
CheckConfigurationConstraint
Test Constraint to check to make sure the configuration is set
|
class |
RuntimeFailConstraint
Always non-gracefully fail on attempt
|
static class |
TestConstraint.CheckWasRunConstraint
Constraint to check that it was actually run (or not)
|
static class |
TestConstraints.AlsoWorks
Also just works
|
class |
WorksConstraint
It just works
|
static class |
WorksConstraint.NameConstraint
Constraint to check that the naming of constraints doesn't mess up the
pattern matching.(that constraint $___Constraint$NameConstraint isn't a
problem)
|
Modifier and Type | Method and Description |
---|---|
static void |
Constraints.add(HTableDescriptor desc,
java.lang.Class<? extends Constraint> constraint,
Configuration conf)
Add a
Constraint to the table with the given configuration |
static void |
Constraints.disableConstraint(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz)
Disable the given
Constraint . |
static void |
Constraints.enableConstraint(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz)
Enable the given
Constraint . |
static boolean |
Constraints.enabled(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz)
Check to see if the given constraint is enabled.
|
static boolean |
Constraints.has(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz)
Check to see if the Constraint is currently set.
|
static void |
Constraints.remove(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz)
Remove the constraint (and associated information) for the table
descriptor.
|
static void |
Constraints.setConfiguration(HTableDescriptor desc,
java.lang.Class<? extends Constraint> clazz,
Configuration configuration)
Update the configuration for the
Constraint ; does not change the
order in which the constraint is run. |