Package com.massivecraft.mcore.store

Examples of com.massivecraft.mcore.store.Driver.save()


      Collection<String> ids = fromDriver.getIds(fromColl);
      msg("<i>Now copying collection <h>%d/%d %s <i>with <h>%d <i>documents.", countCollCurrent, countCollTotal, collname, ids.size());
      for (String id : ids)
      {
        Entry<JsonElement, Long> data = fromDriver.load(fromColl, id);
        toDriver.save(toColl, id, data.getKey());
      }
    }
    long after = System.currentTimeMillis();
    long duration = after - before;
    msg("<g>The copy is now complete. <i>It took <h>%dms<i>.", duration);
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.