Example #1
0
  Map<Long, String> fill(StoreWAL e) {
    Map<Long, String> ret = new LinkedHashMap<Long, String>();

    for (int i = 0; i < 1000; i++) {
      String s = UtilsTest.randomString((int) (Math.random() * 10000));
      long recid = e.put(s, Serializer.STRING);
      ret.put(recid, s);
    }

    return ret;
  }
Example #2
0
 @Override
 protected E openEngine() {
   StoreWAL e = new StoreWAL(f.getPath());
   e.init();
   return (E) e;
 }