| 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  | BaseConstraintBase class to use when actually implementing a  Constraint. | 
| Modifier and Type | Field and Description | 
|---|---|
| private static Comparator<Constraint> | Constraints. constraintComparator | 
| private List<? extends Constraint> | ConstraintProcessor. constraints | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) static List<? extends Constraint> | Constraints. getConstraints(TableDescriptor desc,
              ClassLoader classloader)Get the constraints stored in the table descriptor | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | Constraints. add(HTableDescriptor desc,
   Class<? extends Constraint> constraint,
   org.apache.hadoop.conf.Configuration conf)Add a  Constraintto the table with the given configuration | 
| private static void | Constraints. addConstraint(HTableDescriptor desc,
             Class<? extends Constraint> clazz,
             org.apache.hadoop.conf.Configuration conf,
             long priority)Write the raw constraint and configuration to the descriptor. | 
| private static void | Constraints. changeConstraintEnabled(HTableDescriptor desc,
                       Class<? extends Constraint> clazz,
                       boolean enabled)Change the whether the constraint (if it is already present) is enabled or
 disabled. | 
| static void | Constraints. disableConstraint(HTableDescriptor desc,
                 Class<? extends Constraint> clazz)Disable the given  Constraint. | 
| static void | Constraints. enableConstraint(HTableDescriptor desc,
                Class<? extends Constraint> clazz)Enable the given  Constraint. | 
| static boolean | Constraints. enabled(HTableDescriptor desc,
       Class<? extends Constraint> clazz)Check to see if the given constraint is enabled. | 
| private static Pair<String,String> | Constraints. getKeyValueForClass(HTableDescriptor desc,
                   Class<? extends Constraint> clazz)Get the kv  Map.Entryin the descriptor for the specified class | 
| static boolean | Constraints. has(HTableDescriptor desc,
   Class<? extends Constraint> clazz)Check to see if the Constraint is currently set. | 
| static void | Constraints. remove(HTableDescriptor desc,
      Class<? extends Constraint> clazz)Remove the constraint (and associated information) for the table
 descriptor. | 
| private static String | Constraints. serializeConstraintClass(Class<? extends Constraint> clazz)Just write the class to a String representation of the class as a key for
 the  HTableDescriptor | 
| static void | Constraints. setConfiguration(HTableDescriptor desc,
                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–2021 The Apache Software Foundation. All rights reserved.