public class DualPivotQuickSort extends Object
http://iaroslavski.narod.ru/quicksort/DualPivotQuicksort.pdf.
This provides an in-place sorting mechanism, to allow the reuse of arrays containing a large number of objects, reducing
the number of temporary object created by the Alfresco Solr indexing service.| Modifier and Type | Field and Description |
|---|---|
static int |
DIST_SIZE |
static int |
INSERTION_SORT_THRESHOLD |
| Constructor and Description |
|---|
DualPivotQuickSort() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
sort(T[] elements,
Comparator<T> comparator)
Sort elements using comparator, in place.
|
static <T> void |
sort(T[] elements,
int left,
int right,
Comparator<T> comparator)
Sort elements between index left and index right, using comparator.
|
public static final int INSERTION_SORT_THRESHOLD
public static final int DIST_SIZE
public static <T> void sort(T[] elements,
Comparator<T> comparator)
public static <T> void sort(T[] elements,
int left,
int right,
Comparator<T> comparator)
Copyright © 2005–2014 Alfresco Software. All rights reserved.