Package org.apache.accumulo.core.client

Examples of org.apache.accumulo.core.client.NamespaceNotEmptyException


      log.debug(credentials.getPrincipal() + " attempted to delete the " + namespaceId + " namespace");
      throw new AccumuloSecurityException(credentials.getPrincipal(), SecurityErrorCode.UNSUPPORTED_OPERATION);
    }

    if (Namespaces.getTableIds(instance, namespaceId).size() > 0) {
      throw new NamespaceNotEmptyException(namespaceId, namespace, null);
    }

    List<ByteBuffer> args = Arrays.asList(ByteBuffer.wrap(namespace.getBytes()));
    Map<String,String> opts = new HashMap<String,String>();
View Full Code Here


  }

  @Override
  public void delete(String namespace) throws AccumuloException, AccumuloSecurityException, NamespaceNotFoundException, NamespaceNotEmptyException {
    if (acu.namespaces.get(namespace).getTables(acu).size() > 0) {
      throw new NamespaceNotEmptyException(null, namespace, null);
    }
    acu.namespaces.remove(namespace);
  }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.client.NamespaceNotEmptyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.