.println("Removed constraint " + i + " from namespace " + namespace); } else if (tableName != null) { shellState.getAccumuloClient().tableOperations().removeConstraint(tableName, i); shellState.getReader().println("Removed constraint " + i + " from table " + tableName); } else {
@Override public void removeConstraint(ByteBuffer login, String tableName, int constraint) throws org.apache.accumulo.proxy.thrift.AccumuloException, org.apache.accumulo.proxy.thrift.AccumuloSecurityException, org.apache.accumulo.proxy.thrift.TableNotFoundException, TException { try { getConnector(login).tableOperations().removeConstraint(tableName, constraint); } catch (Exception e) { handleExceptionTNF(e); } }
getConnector().tableOperations().removeConstraint(tableName, 2); sleepUninterruptibly(1, TimeUnit.SECONDS); getConnector().tableOperations().removeConstraint(tableName, 1); sleepUninterruptibly(1, TimeUnit.SECONDS);
.println("Removed constraint " + i + " from namespace " + namespace); } else if (tableName != null) { shellState.getConnector().tableOperations().removeConstraint(tableName, i); shellState.getReader().println("Removed constraint " + i + " from table " + tableName); } else {
switch (i) { case 0: ops.removeConstraint(tableName, 0); fail(); break;