Examples of VCursor


Examples of de.fhg.igd.mongomvcc.VCursor

    putPerson("Elvis", 3);
    _master.commit();
   
    VBranch oldMaster = _db.checkout(firstCID);
    VCollection persons = oldMaster.getCollection("persons");
    VCursor cursor = persons.find();
    DBCursor dbcursor = extractDBCursor(cursor);
    assertEquals(2, cursor.size());
    assertTrue(hasAttachedFilter(cursor));
    assertEquals(2, dbcursor.size());
  }
View Full Code Here

Examples of de.fhg.igd.mongomvcc.VCursor

    Map<String, Object> obj = new HashMap<String, Object>();
    obj.put("name", "Mona Lisa");
    obj.put("data", test);
    coll.insert(obj);
   
    VCursor vc = coll.find();
    assertEquals(1, vc.size());
    Map<String, Object> obj2 = vc.iterator().next();
    assertEquals("Mona Lisa", obj2.get("name"));
    assertArrayEquals(test, (byte[])obj2.get("data"));
   
    ByteArrayInputStream bais = new ByteArrayInputStream(test);
    obj = new HashMap<String, Object>();
View Full Code Here

Examples of de.fhg.igd.mongomvcc.VCursor

    Map<String, Object> obj = new HashMap<String, Object>();
    obj.put("name", "Mona Lisa");
    obj.put("data", test);
    coll.insert(obj);
   
    VCursor vc = coll.find();
    assertEquals(1, vc.size());
    Map<String, Object> obj2 = vc.iterator().next();
    assertEquals("Mona Lisa", obj2.get("name"));
    assertArrayEquals(test, (float[])obj2.get("data"), 0.00001f);
   
    FloatBuffer bb = FloatBuffer.wrap(test);
    obj = new HashMap<String, Object>();
View Full Code Here

Examples of de.fhg.igd.mongomvcc.VCursor

    _branch.getIndex().delete(_name, uid);
  }
 
  @Override
  public void delete(Map<String, Object> example) {
    VCursor allIds = find(example, UID);
    for (Map<String, Object> id : allIds) {
      _branch.getIndex().delete(_name, (Long)id.get(UID));
    }
  }
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.