Package org.apache.arrow.algorithm.sort
Class GeneralOutOfPlaceVectorSorter<V extends ValueVector>
java.lang.Object
org.apache.arrow.algorithm.sort.GeneralOutOfPlaceVectorSorter<V>
- Type Parameters:
V
- vector type.
- All Implemented Interfaces:
OutOfPlaceVectorSorter<V>
public class GeneralOutOfPlaceVectorSorter<V extends ValueVector>
extends Object
implements OutOfPlaceVectorSorter<V>
An out-of-place sorter for vectors of arbitrary type, with time complexity O(n*log(n)). Since it
does not make any assumptions about the memory layout of the vector, its performance can be
sub-optimal. So if another sorter is applicable (
FixedWidthInPlaceVectorSorter
), it
should be used in preference.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sortOutOfPlace
(V srcVector, V dstVector, VectorValueComparator<V> comparator) Sort a vector out-of-place.
-
Constructor Details
-
GeneralOutOfPlaceVectorSorter
public GeneralOutOfPlaceVectorSorter()
-
-
Method Details
-
sortOutOfPlace
Description copied from interface:OutOfPlaceVectorSorter
Sort a vector out-of-place.- Specified by:
sortOutOfPlace
in interfaceOutOfPlaceVectorSorter<V extends ValueVector>
- Parameters:
srcVector
- the input vector.dstVector
- the output vector, which has the same size as the input vector.comparator
- the criteria for sort.
-