| 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 |
BaseConstraint
Base class to use when actually implementing a
Constraint. |
| Modifier and Type | Method and Description |
|---|---|
static TableDescriptorBuilder |
Constraints.add(TableDescriptorBuilder builder,
Class<? extends Constraint> constraint,
org.apache.hadoop.conf.Configuration conf)
Add a
Constraint to the table with the given configuration
Each constraint, when added to the table, will have a specific priority, dictating the order in
which the Constraint will be run. |
static void |
Constraints.disableConstraint(TableDescriptorBuilder builder,
Class<? extends Constraint> clazz)
Disable the given
Constraint. |
static void |
Constraints.enableConstraint(TableDescriptorBuilder builder,
Class<? extends Constraint> clazz)
Enable the given
Constraint. |
static boolean |
Constraints.enabled(TableDescriptor desc,
Class<? extends Constraint> clazz)
Check to see if the given constraint is enabled.
|
static boolean |
Constraints.has(TableDescriptor desc,
Class<? extends Constraint> clazz)
Check to see if the Constraint is currently set.
|
static TableDescriptorBuilder |
Constraints.remove(TableDescriptorBuilder builder,
Class<? extends Constraint> clazz)
Remove the constraint (and associated information) for the table descriptor.
|
static TableDescriptorBuilder |
Constraints.setConfiguration(TableDescriptorBuilder builder,
Class<? extends Constraint> clazz,
org.apache.hadoop.conf.Configuration configuration)
Update the configuration for the
Constraint; does not change the order in which the
constraint is run. |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.