Package org.apache.lucene.util
Class StringSorter
java.lang.Object
org.apache.lucene.util.Sorter
org.apache.lucene.util.StringSorter
A
BytesRef sorter tries to use a efficient radix sorter if cmp is a
BytesRefComparator, otherwise fallback to fallbackSorter(java.util.Comparator<org.apache.lucene.util.BytesRef>)- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BytesRefprotected final BytesRefBuilderprotected final BytesRefBuilderprotected final BytesRefBuilderprotected final BytesRefprotected final BytesRef -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompare(int i, int j) Compare entries found in slotsiandj.protected SorterfallbackSorter(Comparator<BytesRef> cmp) protected abstract voidget(BytesRefBuilder builder, BytesRef result, int i) protected Sortervoidsort(int from, int to) Sort the slice which starts atfrom(inclusive) and ends atto(exclusive).Methods inherited from class org.apache.lucene.util.Sorter
comparePivot, setPivot, swap
-
Field Details
-
scratch1
-
scratch2
-
pivotBuilder
-
scratchBytes1
-
scratchBytes2
-
pivot
-
-
Constructor Details
-
StringSorter
-
-
Method Details
-
get
-
compare
protected int compare(int i, int j) Description copied from class:SorterCompare entries found in slotsiandj. The contract for the returned value is the same asComparator.compare(Object, Object). -
sort
public void sort(int from, int to) Description copied from class:SorterSort the slice which starts atfrom(inclusive) and ends atto(exclusive). -
radixSorter
-
fallbackSorter
-