Search in sources :

Example 1 with IdHashMap

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;
}
Also used : IdMap(de.fhg.igd.mongomvcc.helper.IdMap) IdHashMap(de.fhg.igd.mongomvcc.helper.IdHashMap)

Example 2 with IdHashMap

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;
}
Also used : IdMap(de.fhg.igd.mongomvcc.helper.IdMap) IdHashMap(de.fhg.igd.mongomvcc.helper.IdHashMap)

Example 3 with IdHashMap

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;
}
Also used : IdMap(de.fhg.igd.mongomvcc.helper.IdMap) IdHashMap(de.fhg.igd.mongomvcc.helper.IdHashMap)

Aggregations

IdHashMap (de.fhg.igd.mongomvcc.helper.IdHashMap)3 IdMap (de.fhg.igd.mongomvcc.helper.IdMap)3