Codota Logo
CoprocessorDescriptor.getClassName
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: cdapio/cdap

public TableDescriptor(String namespace, String name, Set<ColumnFamilyDescriptor> families,
            Set<CoprocessorDescriptor> coprocessors, Map<String, String> properties) {
 this.namespace = namespace;
 this.name = name;
 this.families = new HashMap<>();
 for (ColumnFamilyDescriptor family : families) {
  this.families.put(family.getName(), family);
 }
 this.coprocessors = new HashMap<>();
 for (CoprocessorDescriptor coprocessor : coprocessors) {
  this.coprocessors.put(coprocessor.getClassName(), coprocessor);
 }
 this.properties = properties == null ? Collections.<String, String>emptyMap()
  : Collections.unmodifiableMap(properties);
}
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.hbaseCoprocessorDescriptorgetClassName

Popular methods of CoprocessorDescriptor

  • getPath
  • getPriority
  • getProperties
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now