Package org.apache.accumulo.core.client

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


        case EXISTS:
          throw new TableExistsException(e);
        case NOTFOUND:
          throw new TableNotFoundException(e);
        case NAMESPACE_EXISTS:
          throw new NamespaceExistsException(e);
        case NAMESPACE_NOTFOUND:
          throw new NamespaceNotFoundException(e);
        case OFFLINE:
          throw new TableOfflineException(instance, null);
        default:
View Full Code Here


        case EXISTS:
          throw new TableExistsException(e);
        case NOTFOUND:
          throw new TableNotFoundException(e);
        case NAMESPACE_EXISTS:
          throw new NamespaceExistsException(e);
        case NAMESPACE_NOTFOUND:
          throw new NamespaceNotFoundException(e);
        case OFFLINE:
          throw new TableOfflineException(instance, null);
        default:
View Full Code Here

  public void create(String namespace) throws AccumuloException, AccumuloSecurityException, NamespaceExistsException {
    if (!namespace.matches(Namespaces.VALID_NAME_REGEX))
      throw new IllegalArgumentException();

    if (exists(namespace))
      throw new NamespaceExistsException(namespace, namespace, "");
    else
      acu.createNamespace(username, namespace);
  }
View Full Code Here

  public void rename(String oldNamespaceName, String newNamespaceName) throws AccumuloSecurityException, NamespaceNotFoundException, AccumuloException,
      NamespaceExistsException {
    if (!exists(oldNamespaceName))
      throw new NamespaceNotFoundException(oldNamespaceName, oldNamespaceName, "");
    if (exists(newNamespaceName))
      throw new NamespaceExistsException(newNamespaceName, newNamespaceName, "");

    MockNamespace n = acu.namespaces.get(oldNamespaceName);
    for (String t : n.getTables(acu)) {
      String tt = newNamespaceName + "." + Tables.qualify(t).getSecond();
      acu.tables.put(tt, acu.tables.remove(t));
View Full Code Here

TOP

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

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.