Tabnine Logo
Constraints.getNextPriority
Code IndexAdd Tabnine to your IDE (free)

How to use
getNextPriority
method
in
org.apache.hadoop.hbase.constraint.Constraints

Best Java code snippets using org.apache.hadoop.hbase.constraint.Constraints.getNextPriority (Showing top 9 results out of 315)

origin: apache/hbase

/**
 * Add a {@link Constraint} to the table with the given configuration
 * <p>
 * Each constraint, when added to the table, will have a specific priority,
 * dictating the order in which the {@link Constraint} will be run. A
 * {@link Constraint} added will run on the regionserver before those added to
 * the {@link HTableDescriptor} later.
 * 
 * @param desc
 *          table descriptor to the constraint to
 * @param constraint
 *          to be added
 * @param conf
 *          configuration associated with the constraint
 * @throws IOException
 *           if any constraint could not be deserialized. Assumes if 1
 *           constraint is not loaded properly, something has gone terribly
 *           wrong and that all constraints need to be enforced.
 */
public static void add(HTableDescriptor desc,
  Class<? extends Constraint> constraint, Configuration conf)
  throws IOException {
 enable(desc);
 long priority = getNextPriority(desc);
 addConstraint(desc, constraint, conf, priority++);
 updateLatestPriority(desc, priority);
}
origin: apache/hbase

long priority = getNextPriority(desc);
origin: apache/hbase

 throws IOException {
enable(desc);
long priority = getNextPriority(desc);
for (Pair<Class<? extends Constraint>, Configuration> pair : constraints) {
 addConstraint(desc, pair.getFirst(), pair.getSecond(), priority++);
origin: co.cask.hbase/hbase

/**
 * Add a {@link Constraint} to the table with the given configuration
 * <p>
 * Each constraint, when added to the table, will have a specific priority,
 * dictating the order in which the {@link Constraint} will be run. A
 * {@link Constraint} added will run on the regionserver before those added to
 * the {@link HTableDescriptor} later.
 * 
 * @param desc
 *          table descriptor to the constraint to
 * @param constraint
 *          to be added
 * @param conf
 *          configuration associated with the constraint
 * @throws IOException
 *           if any constraint could not be deserialized. Assumes if 1
 *           constraint is not loaded properly, something has gone terribly
 *           wrong and that all constraints need to be enforced.
 */
public static void add(HTableDescriptor desc,
  Class<? extends Constraint> constraint, Configuration conf)
  throws IOException {
 enable(desc);
 long priority = getNextPriority(desc);
 addConstraint(desc, constraint, conf, priority++);
 updateLatestPriority(desc, priority);
}
origin: harbby/presto-connectors

/**
 * Add a {@link Constraint} to the table with the given configuration
 * <p>
 * Each constraint, when added to the table, will have a specific priority,
 * dictating the order in which the {@link Constraint} will be run. A
 * {@link Constraint} added will run on the regionserver before those added to
 * the {@link HTableDescriptor} later.
 * 
 * @param desc
 *          table descriptor to the constraint to
 * @param constraint
 *          to be added
 * @param conf
 *          configuration associated with the constraint
 * @throws IOException
 *           if any constraint could not be deserialized. Assumes if 1
 *           constraint is not loaded properly, something has gone terribly
 *           wrong and that all constraints need to be enforced.
 */
public static void add(HTableDescriptor desc,
  Class<? extends Constraint> constraint, Configuration conf)
  throws IOException {
 enable(desc);
 long priority = getNextPriority(desc);
 addConstraint(desc, constraint, conf, priority++);
 updateLatestPriority(desc, priority);
}
origin: co.cask.hbase/hbase

long priority = getNextPriority(desc);
origin: harbby/presto-connectors

long priority = getNextPriority(desc);
origin: co.cask.hbase/hbase

 throws IOException {
enable(desc);
long priority = getNextPriority(desc);
for (Pair<Class<? extends Constraint>, Configuration> pair : constraints) {
 addConstraint(desc, pair.getFirst(), pair.getSecond(), priority++);
origin: harbby/presto-connectors

 throws IOException {
enable(desc);
long priority = getNextPriority(desc);
for (Pair<Class<? extends Constraint>, Configuration> pair : constraints) {
 addConstraint(desc, pair.getFirst(), pair.getSecond(), priority++);
org.apache.hadoop.hbase.constraintConstraintsgetNextPriority

Popular methods of Constraints

  • disable
    Turn off processing constraints for a given table, even if constraints have been turned on or added.
  • getConstraints
  • addConstraint
    Write the raw constraint and configuration to the descriptor. This method takes care of creating a n
  • changeConstraintEnabled
    Change the whether the constraint (if it is already present) is enabled or disabled.
  • configure
    Setup the configuration for a constraint as to whether it is enabled and its priority
  • enable
    Enable constraints on a table. Currently, if you attempt to add a constraint to the table, then Cons
  • getKeyValueForClass
    Get the kv Entry in the descriptor for the specified class
  • readConfiguration
    Read the Configuration stored in the byte stream.
  • serializeConfiguration
    Write the configuration to a String
  • serializeConstraintClass
    Just write the class to a String representation of the class as a key for the HTableDescriptor
  • updateLatestPriority
  • writeConstraint
    Write the given key and associated configuration to the HTableDescriptor
  • updateLatestPriority,
  • writeConstraint,
  • add,
  • disableConstraint,
  • enabled,
  • has,
  • remove,
  • setConfiguration

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now