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

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

Best Java code snippets using co.cask.cdap.spi.hbase.CoprocessorDescriptor.getProperties (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

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.hbaseCoprocessorDescriptorgetProperties

Popular methods of CoprocessorDescriptor

  • getClassName
  • getPath
  • getPriority
  • <init>

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top plugins for Android Studio
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