use of org.apache.hadoop.util.QuickSort in project drill by axbaretto.
the class SampleSortTemplate method sort.
@Override
public void sort(SelectionVector2 vector2, VectorContainer container) {
QuickSort qs = new QuickSort();
qs.sort(this, 0, vector2.getCount());
}
use of org.apache.hadoop.util.QuickSort in project drill by axbaretto.
the class SortTest method doSort.
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;
}
use of org.apache.hadoop.util.QuickSort in project drill by apache.
the class SingleBatchSorterTemplate method sort.
@Override
public void sort(SelectionVector2 vector2) {
QuickSort qs = new QuickSort();
Stopwatch watch = Stopwatch.createStarted();
if (vector2.getCount() > 0) {
qs.sort(this, 0, vector2.getCount());
}
logger.debug("Took {} us to sort {} records", watch.elapsed(TimeUnit.MICROSECONDS), vector2.getCount());
}
use of org.apache.hadoop.util.QuickSort in project drill by apache.
the class SampleSortTemplate method sort.
@Override
public void sort(SelectionVector2 vector2, VectorContainer container) {
QuickSort qs = new QuickSort();
qs.sort(this, 0, vector2.getCount());
}
use of org.apache.hadoop.util.QuickSort in project drill by axbaretto.
the class SingleBatchSorterTemplate method sort.
@Override
public void sort(SelectionVector2 vector2) {
QuickSort qs = new QuickSort();
Stopwatch watch = Stopwatch.createStarted();
if (vector2.getCount() > 0) {
qs.sort(this, 0, vector2.getCount());
}
logger.debug("Took {} us to sort {} records", watch.elapsed(TimeUnit.MICROSECONDS), vector2.getCount());
}
Aggregations