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

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

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

Admin.listTableDescriptorsByNamespace介绍

[英]Get list of table descriptors by namespace
[中]按命名空间获取表描述符列表

代码示例

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

@Override
 public Void call() throws Exception {
  admin.listTableDescriptorsByNamespace("non_existant_namespace");
  return null;
 }
}, NamespaceNotFoundException.class);

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

@Override
public List<TTableDescriptor> getTableDescriptorsByNamespace(String name)
  throws TIOError, TException {
 try {
  List<TableDescriptor> descriptors = connectionCache.getAdmin()
    .listTableDescriptorsByNamespace(Bytes.toBytes(name));
  return tableDescriptorsFromHBase(descriptors);
 } catch (IOException e) {
  throw getTIOError(e);
 }
}

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

TableListModel tableModel = new TableListModel();
try{
 HTableDescriptor[] tables = servlet.getAdmin().listTableDescriptorsByNamespace(namespace);
 for(int i = 0; i < tables.length; i++){
  tableModel.add(new TableModel(tables[i].getTableName().getQualifierAsString()));

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

TableName.META_TABLE_NAME);
HTableDescriptor[] descs =
  admin.listTableDescriptorsByNamespace(NamespaceDescriptor.SYSTEM_NAMESPACE.getName());
assertEquals(systemTables.size(), descs.length);
for (HTableDescriptor desc : descs) {

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

htd.addFamily(new HColumnDescriptor("family1"));
admin.createTable(htd);
HTableDescriptor[] htds = admin.listTableDescriptorsByNamespace(prefix + "ns1");
assertNotNull("Should have not returned null", htds);
assertEquals("Should have returned non-empty array", 1, htds.length);

代码示例来源:origin: larsgeorge/hbase-book

htds = admin.listTableDescriptorsByNamespace("testspace1");

代码示例来源:origin: com.aliyun.hbase/alihbase-rest

TableListModel tableModel = new TableListModel();
try{
 HTableDescriptor[] tables = servlet.getAdmin().listTableDescriptorsByNamespace(namespace);
 for(int i = 0; i < tables.length; i++){
  tableModel.add(new TableModel(tables[i].getTableName().getQualifierAsString()));

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

TableListModel tableModel = new TableListModel();
try{
 HTableDescriptor[] tables = servlet.getAdmin().listTableDescriptorsByNamespace(namespace);
 for(int i = 0; i < tables.length; i++){
  tableModel.add(new TableModel(tables[i].getTableName().getQualifierAsString()));

代码示例来源:origin: harbby/presto-connectors

sysTables = master.isInitialized() ? admin.listTableDescriptorsByNamespace(
 NamespaceDescriptor.SYSTEM_NAMESPACE_NAME_STR) : null;

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

TableName.NAMESPACE_TABLE_NAME);
HTableDescriptor[] descs =
  admin.listTableDescriptorsByNamespace(NamespaceDescriptor.SYSTEM_NAMESPACE.getName());
assertEquals(systemTables.size(), descs.length);
for (HTableDescriptor desc : descs) {

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

htd.addFamily(new HColumnDescriptor("family1"));
admin.createTable(htd);
HTableDescriptor[] htds = admin.listTableDescriptorsByNamespace(prefix + "ns1");
assertNotNull("Should have not returned null", htds);
assertEquals("Should have returned non-empty array", 1, htds.length);

相关文章

Admin类方法