public static String qualified(String tableName) { return qualified(tableName, Namespace.DEFAULT); }
public void setTableName(String tableName) { this.tableName = (tableName == null || tableName.isEmpty()) ? "" : Tables.qualified(tableName); }
@Override public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, TableNotFoundException, TableExistsException { shellState.getAccumuloClient().tableOperations().rename(cl.getArgs()[0], cl.getArgs()[1]); if (shellState.getTableName().equals(Tables.qualified(cl.getArgs()[0]))) { shellState.setTableName(cl.getArgs()[1]); } return 0; }
String tableNameStr = qualified(new String(tableName, UTF_8), namespaceName); Table.ID tableId = Table.ID.of(tableIdStr); tableNameToIdBuilder.put(tableNameStr, tableId);