@Override public boolean isGlobalAdmin(Configuration hConf) throws IOException { // we do not support determining whether cdap is global admin or not for hbase 96 warnGlobalAdminCheckFailure(); return false; }
@Override protected HBaseTableUtil getTableUtil() { HBase98TableUtil hBaseTableUtil = new HBase98TableUtil(); hBaseTableUtil.setCConf(cConf); hBaseTableUtil.setNamespaceQueryAdmin(getNamespaceQueryAdmin()); return hBaseTableUtil; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }