Uses of Interface
org.apache.hadoop.hbase.constraint.Constraint
Packages that use Constraint
Package
Description
Restrict the domain of a data attribute, often times to fulfill business rules/requirements.
-
Uses of Constraint in org.apache.hadoop.hbase.constraint
Classes in org.apache.hadoop.hbase.constraint that implement ConstraintModifier and TypeClassDescriptionclassBase class to use when actually implementing aConstraint.Fields in org.apache.hadoop.hbase.constraint with type parameters of type ConstraintModifier and TypeFieldDescriptionprivate static final Comparator<Constraint>Constraints.constraintComparatorprivate List<? extends Constraint>ConstraintProcessor.constraintsMethods in org.apache.hadoop.hbase.constraint that return types with arguments of type ConstraintModifier and TypeMethodDescription(package private) static List<? extends Constraint>Constraints.getConstraints(TableDescriptor desc, ClassLoader classloader) Get the constraints stored in the table descriptorMethod parameters in org.apache.hadoop.hbase.constraint with type arguments of type ConstraintModifier and TypeMethodDescriptionstatic TableDescriptorBuilderConstraints.add(TableDescriptorBuilder builder, Class<? extends Constraint> constraint, org.apache.hadoop.conf.Configuration conf) Add aConstraintto the table with the given configurationprivate static TableDescriptorBuilderConstraints.addConstraint(TableDescriptorBuilder builder, Class<? extends Constraint> clazz, org.apache.hadoop.conf.Configuration conf, long priority) Write the raw constraint and configuration to the descriptor.private static TableDescriptorBuilderConstraints.changeConstraintEnabled(TableDescriptorBuilder builder, Class<? extends Constraint> clazz, boolean enabled) Change the whether the constraint (if it is already present) is enabled or disabled.static voidConstraints.disableConstraint(TableDescriptorBuilder builder, Class<? extends Constraint> clazz) Disable the givenConstraint.static voidConstraints.enableConstraint(TableDescriptorBuilder builder, Class<? extends Constraint> clazz) Enable the givenConstraint.static booleanConstraints.enabled(TableDescriptor desc, Class<? extends Constraint> clazz) Check to see if the given constraint is enabled.Constraints.getKeyValueForClass(TableDescriptorBuilder builder, Class<? extends Constraint> clazz) Get the kvMap.Entryin the descriptor builder for the specified classConstraints.getKeyValueForClass(TableDescriptor desc, Class<? extends Constraint> clazz) Get the kvMap.Entryin the descriptor for the specified classstatic booleanConstraints.has(TableDescriptor desc, Class<? extends Constraint> clazz) Check to see if the Constraint is currently set.static TableDescriptorBuilderConstraints.remove(TableDescriptorBuilder builder, Class<? extends Constraint> clazz) Remove the constraint (and associated information) for the table descriptor.private static StringConstraints.serializeConstraintClass(Class<? extends Constraint> clazz) Just write the class to a String representation of the class as a key for theTableDescriptorstatic TableDescriptorBuilderConstraints.setConfiguration(TableDescriptorBuilder builder, Class<? extends Constraint> clazz, org.apache.hadoop.conf.Configuration configuration) Update the configuration for theConstraint; does not change the order in which the constraint is run.