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

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

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

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: 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: caskdata/cdap

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

Path path = coprocessorDescriptor.getPath() == null ? null : new Path(coprocessorDescriptor.getPath());
newDescriptor.addCoprocessor(coprocessorDescriptor.getClassName(), path, coprocessorDescriptor.getPriority(),
               coprocessorDescriptor.getProperties());
co.cask.cdap.spi.hbaseCoprocessorDescriptorgetPath

Popular methods of CoprocessorDescriptor

  • getClassName
  • getPriority
  • getProperties
  • <init>

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • String (java.lang)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
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