ordering.append(field(idxRowType, 0), true);
IndexKeyRange keyRange = IndexKeyRange.bounded(idxRowType, lo, true, hi, true);
Operator plan = indexScan_Default(idxRowType, keyRange, ordering);
long start = System.nanoTime();
for (int r = 0; r < runs; r++) {
Cursor cursor = cursor(plan, queryContext, queryBindings);
cursor.openTopLevel();
for (int s = 0; s < sequentialAccessesPerRandom; s++) {
Row row = cursor.next();
assert row != null;
}
cursor.close();
}
long end = System.nanoTime();
if (label != null) {
double averageUsec = (end - start) / (1000.0 * runs * sequentialAccessesPerRandom);
System.out.println(String.format("SEQUENTIAL %s - %s: %s usec/row", label, sequentialAccessesPerRandom, averageUsec));