org.apache.hadoop.hbase.client.Admin.addColumn()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(138)

本文整理了Java中org.apache.hadoop.hbase.client.Admin.addColumn()方法的一些代码示例,展示了Admin.addColumn()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Admin.addColumn()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Admin
类名称:Admin
方法名:addColumn

Admin.addColumn介绍

[英]Add a column to an existing table. Asynchronous operation.
[中]将列添加到现有表中。异步操作。

代码示例

代码示例来源:origin: thinkaurelius/titan

@Override
public void addColumn(String tableString, HColumnDescriptor columnDescriptor) throws IOException
{
  adm.addColumn(TableName.valueOf(tableString), columnDescriptor);
}

代码示例来源:origin: apache/kylin

if (existingFamilies.contains(family) == false) {
  logger.debug("Adding family '" + family + "' to HTable '" + table + "'");
  admin.addColumn(tableName, newFamilyDescriptor(family));

代码示例来源:origin: org.apache.atlas/atlas-titan

@Override
public void addColumn(String tableString, HColumnDescriptor columnDescriptor) throws IOException
{
  adm.addColumn(TableName.valueOf(tableString), columnDescriptor);
}

代码示例来源:origin: apache/incubator-atlas

@Override
public void addColumn(String tableString, HColumnDescriptor columnDescriptor) throws IOException
{
  adm.addColumn(TableName.valueOf(tableString), columnDescriptor);
}

代码示例来源:origin: com.github.hackerwin7/jlib-utils

/**
 * add family columng
 * @param tbName
 * @param families
 * @throws Exception
 */
public void addFamily(String tbName, String[] families) throws Exception {
  if(existsTable(tbName)) {
    List<String> getfams = getColumnFamiliesName(tbName);
    for(String addfm : families) {
      boolean isadd = true;
      for(String fmName : getfams) {
        if(StringUtils.equals(addfm, fmName)) {
          isadd = false;
          break;
        }
      }
      if(isadd)
        admin.addColumn(TableName.valueOf(tbName), new HColumnDescriptor(addfm));
    }
  } else {
    logger.error("table is not exists!");
  }
}

代码示例来源:origin: locationtech/geowave

column.setMaxVersions(Integer.MAX_VALUE);
admin.addColumn(tableName, column);
cfCacheSet.add(newColumnFamily);

代码示例来源:origin: org.apache.kylin/kylin-storage-hbase

if (existingFamilies.contains(family) == false) {
  logger.debug("Adding family '" + family + "' to HTable '" + table + "'");
  admin.addColumn(tableName, newFamilyDescriptor(family));

相关文章

Admin类方法