Tabnine Logo
CoprocessorDescriptor.getPriority
Code IndexAdd Tabnine to your IDE (free)

How to use
getPriority
method
in
co.cask.cdap.spi.hbase.CoprocessorDescriptor

Best Java code snippets using co.cask.cdap.spi.hbase.CoprocessorDescriptor.getPriority (Showing top 11 results out of 315)

origin: cdapio/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: caskdata/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: cdapio/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: caskdata/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: caskdata/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: cdapio/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: cdapio/cdap

public static HTableDescriptor getHTableDescriptor(TableDescriptor descriptor) {
 TableName tableName = TableName.valueOf(descriptor.getNamespace(), descriptor.getName());
 HTableDescriptor htd = new HTableDescriptor(tableName);
 for (Map.Entry<String, ColumnFamilyDescriptor> family : descriptor.getFamilies().entrySet()) {
  htd.addFamily(getHColumnDesciptor(family.getValue()));
 }
 for (Map.Entry<String, CoprocessorDescriptor> coprocessor : descriptor.getCoprocessors().entrySet()) {
  CoprocessorDescriptor cpd = coprocessor.getValue();
  try {
   Path path = cpd.getPath() == null ? null : new Path(cpd.getPath());
   htd.addCoprocessor(cpd.getClassName(), path, cpd.getPriority(), cpd.getProperties());
  } catch (IOException e) {
   LOG.error("Error adding coprocessor.", e);
  }
 }
 for (Map.Entry<String, String> property : descriptor.getProperties().entrySet()) {
  htd.setValue(property.getKey(), property.getValue());
 }
 return htd;
}
origin: cdapio/cdap

protected void addCoprocessor(HTableDescriptorBuilder tableDescriptor, Class<? extends Coprocessor> coprocessor,
               Integer priority) throws IOException {
 CoprocessorDescriptor descriptor = coprocessorManager.getCoprocessorDescriptor(coprocessor, priority);
 Path path = descriptor.getPath() == null ? null : new Path(descriptor.getPath());
 tableDescriptor.addCoprocessor(descriptor.getClassName(), path, descriptor.getPriority(),
                 descriptor.getProperties());
}
origin: co.cask.cdap/cdap-data-fabric

protected void addCoprocessor(HTableDescriptorBuilder tableDescriptor, Class<? extends Coprocessor> coprocessor,
               Integer priority) throws IOException {
 CoprocessorDescriptor descriptor = coprocessorManager.getCoprocessorDescriptor(coprocessor, priority);
 Path path = descriptor.getPath() == null ? null : new Path(descriptor.getPath());
 tableDescriptor.addCoprocessor(descriptor.getClassName(), path, descriptor.getPriority(),
                 descriptor.getProperties());
}
origin: caskdata/cdap

 coprocessorManager.getCoprocessorDescriptor(coprocessor, Coprocessor.PRIORITY_USER);
Path path = coprocessorDescriptor.getPath() == null ? null : new Path(coprocessorDescriptor.getPath());
newDescriptor.addCoprocessor(coprocessorDescriptor.getClassName(), path, coprocessorDescriptor.getPriority(),
               coprocessorDescriptor.getProperties());
origin: co.cask.cdap/cdap-tms

 coprocessorManager.getCoprocessorDescriptor(coprocessor, Coprocessor.PRIORITY_USER);
Path path = coprocessorDescriptor.getPath() == null ? null : new Path(coprocessorDescriptor.getPath());
newDescriptor.addCoprocessor(coprocessorDescriptor.getClassName(), path, coprocessorDescriptor.getPriority(),
               coprocessorDescriptor.getProperties());
co.cask.cdap.spi.hbaseCoprocessorDescriptorgetPriority

Popular methods of CoprocessorDescriptor

  • getClassName
  • getPath
  • getProperties
  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Collectors (java.util.stream)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top 12 Jupyter Notebook extensions
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