/** * Enable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but makes sure that it gets * loaded on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to enable * @throws IOException * If the constraint cannot be properly deserialized */ public static void enableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, true); }
/** * Disable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but it just doesn't load the * {@link Constraint} on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to disable. * @throws IOException * if the constraint cannot be found */ public static void disableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, false); }
/** * Enable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but makes sure that it gets * loaded on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to enable * @throws IOException * If the constraint cannot be properly deserialized */ public static void enableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, true); }
/** * Disable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but it just doesn't load the * {@link Constraint} on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to disable. * @throws IOException * if the constraint cannot be found */ public static void disableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, false); }
/** * Enable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but makes sure that it gets * loaded on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to enable * @throws IOException * If the constraint cannot be properly deserialized */ public static void enableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, true); }
/** * Disable the given {@link Constraint}. Retains all the information (e.g. * Configuration) for the {@link Constraint}, but it just doesn't load the * {@link Constraint} on the table. * * @param desc * {@link HTableDescriptor} to modify * @param clazz * {@link Constraint} to disable. * @throws IOException * if the constraint cannot be found */ public static void disableConstraint(HTableDescriptor desc, Class<? extends Constraint> clazz) throws IOException { changeConstraintEnabled(desc, clazz, false); }