public enum TokenSorter extends Enum<TokenSorter>
TokenSequence.  The sequence is not modified
 by the sorter.
 
 These objects are thread-safe; the same TokenSorter
 can be used simultaneously by multiple threads.
TokenOrder| Enum Constant and Description | 
|---|
| HEAP_SORTA sorter using the heap sort algorithm. | 
| MERGE_SORTA sorter using the merge sort algorithm. | 
| Modifier and Type | Method and Description | 
|---|---|
| int[] | sort(int rowCount,
    ElementComparator comparator)Performs a sort based on an element comparator. | 
| int[] | sort(RecordTokenSequence data,
    SortKey... sortKeys)Builds a sort order permutation for the specified composite
 sequence using the given sort keys. | 
| int[] | sort(RecordTokenSequence data,
    TokenOrder[] sortOrder)Builds a sort order permutation for the specified composite
 sequence using the specified order for each column. | 
| int[] | sort(TokenSequence data)Builds a sort order permutation for the specified sequence,
 assuming a default of ascending order. | 
| int[] | sort(TokenSequence data,
    TokenOrder sortOrder)Builds a sort order permutation for the specified sequence in
 the specified order. | 
| static TokenSorter | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static TokenSorter[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final TokenSorter HEAP_SORT
public static final TokenSorter MERGE_SORT
public static TokenSorter[] values()
for (TokenSorter c : TokenSorter.values()) System.out.println(c);
public static TokenSorter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int[] sort(TokenSequence data)
data - the sequence to sortpublic int[] sort(TokenSequence data, TokenOrder sortOrder)
data - the sequence to sortsortOrder - the ordering to usepublic int[] sort(RecordTokenSequence data, TokenOrder[] sortOrder)
data - the composite sequence to sortsortOrder - the ordering to use.  This must provide
 as many orderings as there are columns in the sequence.public int[] sort(RecordTokenSequence data, SortKey... sortKeys)
data - the composite sequence to sortsortKeys - definition of the sort keys to usepublic int[] sort(int rowCount,
                  ElementComparator comparator)
rowCount - The number of rows to be sortedcomparator - A comparator that determines the orderingCopyright © 2020 Actian Corporation. All rights reserved.