Package com.orientechnologies.orient.core.db.document

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.reload()


      databaseDocumentTx.command(new OCommandSQL("create class multipleclusters")).execute();

      databaseDocumentTx.close();

      databaseDocumentTx.open("admin", "admin");
      databaseDocumentTx.reload();

      Assert.assertFalse(databaseDocumentTx.existsCluster("multipleclusters"));

      for (int i = 0; i < 3; ++i) {
        Assert.assertTrue(databaseDocumentTx.existsCluster("multipleclusters_" + i));
View Full Code Here


      int deleted = databaseDocumentTx.command(new OCommandSQL("delete from cluster:multipleclusters_2")).execute();
      Assert.assertEquals(deleted, 2);

      // CHANGE CLASS STRATEGY to BALANCED
      databaseDocumentTx.command(new OCommandSQL("alter class multipleclusters clusterselection balanced")).execute();
      databaseDocumentTx.reload();
      databaseDocumentTx.getMetadata().getSchema().reload();

      for (int i = 0; i < 2; ++i) {
        new ODocument("multipleclusters").field("num", i).save();
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.