本文整理汇总了Java中org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler类的典型用法代码示例。如果您正苦于以下问题:Java TableAddFamilyHandler类的具体用法?Java TableAddFamilyHandler怎么用?Java TableAddFamilyHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TableAddFamilyHandler类属于org.apache.hadoop.hbase.master.handler包,在下文中一共展示了TableAddFamilyHandler类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addColumn
import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; //导入依赖的package包/类
@Override
public void addColumn(final TableName tableName, final HColumnDescriptor columnDescriptor)
throws IOException {
checkInitialized();
checkCompression(columnDescriptor);
checkEncryption(conf, columnDescriptor);
if (cpHost != null) {
if (cpHost.preAddColumn(tableName, columnDescriptor)) {
return;
}
}
//TODO: we should process this (and some others) in an executor
new TableAddFamilyHandler(tableName, columnDescriptor, this, this).prepare().process();
if (cpHost != null) {
cpHost.postAddColumn(tableName, columnDescriptor);
}
}
示例2: addColumn
import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; //导入依赖的package包/类
public void addColumn(byte [] tableName, HColumnDescriptor column)
throws IOException {
checkInitialized();
if (cpHost != null) {
if (cpHost.preAddColumn(tableName, column)) {
return;
}
}
new TableAddFamilyHandler(tableName, column, this, this).process();
if (cpHost != null) {
cpHost.postAddColumn(tableName, column);
}
}
示例3: addColumn
import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; //导入依赖的package包/类
@Override
public void addColumn(final TableName tableName, final HColumnDescriptor column)
throws IOException {
checkInitialized();
if (cpHost != null) {
if (cpHost.preAddColumn(tableName, column)) {
return;
}
}
//TODO: we should process this (and some others) in an executor
new TableAddFamilyHandler(tableName, column, this, this).prepare().process();
if (cpHost != null) {
cpHost.postAddColumn(tableName, column);
}
}
示例4: addColumn
import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; //导入依赖的package包/类
public void addColumn(byte [] tableName, HColumnDescriptor column)
throws IOException {
if (cpHost != null) {
if (cpHost.preAddColumn(tableName, column)) {
return;
}
}
new TableAddFamilyHandler(tableName, column, this, this).process();
if (cpHost != null) {
cpHost.postAddColumn(tableName, column);
}
}
示例5: addColumn
import org.apache.hadoop.hbase.master.handler.TableAddFamilyHandler; //导入依赖的package包/类
@Override
public void addColumn(final byte[] tableName, final HColumnDescriptor column)
throws IOException {
checkInitialized();
if (cpHost != null) {
if (cpHost.preAddColumn(tableName, column)) {
return;
}
}
new TableAddFamilyHandler(tableName, column, this, this).process();
if (cpHost != null) {
cpHost.postAddColumn(tableName, column);
}
}