Package com.orientechnologies.orient.core.storage

Examples of com.orientechnologies.orient.core.storage.OAutoshardedStorage


      final ODatabaseRecordInternal db = getDatabase();
      final OStorage storage = db.getStorage();

      if (isDistributedCommand()) {
        final OAutoshardedStorage autoshardedStorage = (OAutoshardedStorage) storage;
        OCommandSQL commandSQL = new OCommandSQL(cmd.toString());
        commandSQL.addExcludedNode(autoshardedStorage.getNodeId());

        db.command(commandSQL).execute();

        createClassInternal(className, superClass, clusterIds);
      } else if (storage instanceof OStorageProxy) {
View Full Code Here


      final StringBuilder cmd = new StringBuilder("drop class ");
      cmd.append(className);

      if (isDistributedCommand()) {
        final OAutoshardedStorage autoshardedStorage = (OAutoshardedStorage) storage;
        OCommandSQL commandSQL = new OCommandSQL(cmd.toString());
        commandSQL.addExcludedNode(autoshardedStorage.getNodeId());
        db.command(commandSQL).execute();

        dropClassInternal(className);
      } else if (storage instanceof OStorageProxy) {
        final OCommandSQL commandSQL = new OCommandSQL(cmd.toString());
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.storage.OAutoshardedStorage

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.