use of de.fhg.igd.mongomvcc.helper.IdHashMap in project mongomvcc by igd-geo.
the class Index method getDirtyObjects.
/**
* For a given collection, this method lazily retrieves
* the map that maps UIDs of dirty objects to OIDs.
* @param collection the collection's name
* @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;
}
use of de.fhg.igd.mongomvcc.helper.IdHashMap in project mongomvcc by igd-geo.
the class Index method getObjects.
/**
* For a given collection, this method lazily retrieves
* the map that maps UIDs to OIDs
* @param collection the collection's name
* @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;
}
use of de.fhg.igd.mongomvcc.helper.IdHashMap in project mongomvcc by igd-geo.
the class Tree method resolveCollectionObjects.
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;
}