本文整理了Java中org.apache.hadoop.hbase.client.Admin.addColumn()
方法的一些代码示例,展示了Admin.addColumn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Admin.addColumn()
方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Admin
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!