Open matthewrj opened 8 years ago
When I create an iterator it is initially empty even though there is data in the db. Once I call seekToFirst() the iterator works as expected.
System.out.println("Get: " + Util.deserializeGene(db.get(JniDBFactory.bytes("APOE"))).getName()); final DBIterator iterator = db.iterator(); System.out.println("Iterate initial: " + (iterator.hasNext() || iterator.hasPrev())); iterator.seekToFirst(); System.out.println("Iterate after seek: " + (iterator.hasNext() || iterator.hasPrev())); Get: APOE Iterate initial: false Iterate after seek: true
When I create an iterator it is initially empty even though there is data in the db. Once I call seekToFirst() the iterator works as expected.