- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
@Override protected HBaseTableUtil getTableUtil() { HBase10CDHTableUtil hBaseTableUtil = new HBase10CDHTableUtil(); 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; }