Package de.fhg.igd.mongomvcc.helper

Examples of de.fhg.igd.mongomvcc.helper.IdHashMap


    return new Commit(cid, timestamp, parentCID, rootCID, objects);
  }
 
  private static IdMap resolveCollectionObjects(DBObject o) {
    Set<String> keys = o.keySet();
    IdMap r = new IdHashMap(keys.size());
    for (String k : keys) {
      r.put(Long.parseLong(k), (Long)o.get(k));
    }
    return r;
  }
View Full Code Here


   * @return the map
   */
  private IdMap getObjects(String collection) {
    IdMap objs = _objects.get(collection);
    if (objs == null) {
      objs = new IdHashMap();
      _objects.put(collection, objs);
    }
    return objs;
  }
View Full Code Here

   * @return the map
   */
  private IdMap getDirtyObjects(String collection) {
    IdMap objs = _dirtyObjects.get(collection);
    if (objs == null) {
      objs = new IdHashMap();
      _dirtyObjects.put(collection, objs);
    }
    return objs;
  }
View Full Code Here

TOP

Related Classes of de.fhg.igd.mongomvcc.helper.IdHashMap

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.