benchmarkResults._sorted = true;
query.descend("_val1").orderAscending();
}
startTime = System.currentTimeMillis();
ObjectSet objectSet = query.execute();
benchmarkResults._queryTime = System.currentTimeMillis() - startTime;
startTime = System.currentTimeMillis();
int total = objectSet.size();
if(total < MAX_OBJECTS){
throw new RuntimeException(""+total);
}
int processed = 0;
// try {
while (objectSet.hasNext()) {
Object next = objectSet.next();
processed++;
}
// } catch(Exception e){
// System.err.println("Processed = "+processed);
// e.printStackTrace();