Exemplo n.º 1
0
 @Override
 protected RecordIterator doWork() {
   StackedComparator r = new StackedComparator(defs);
   QuickSort qs = new QuickSort();
   qs.sort(r, 0, records.size());
   return new OrderIterator();
 }
Exemplo n.º 2
0
 public long doSort() {
   QuickSort qs = new QuickSort();
   ByteSortable b = new ByteSortable();
   long nano = System.nanoTime();
   qs.sort(b, 0, RECORD_COUNT);
   return System.nanoTime() - nano;
 }