Package org.apache.arrow.algorithm.sort
Class FixedWidthOutOfPlaceVectorSorter<V extends BaseFixedWidthVector>
java.lang.Object
org.apache.arrow.algorithm.sort.FixedWidthOutOfPlaceVectorSorter<V>
- Type Parameters:
V
- vector type.
- All Implemented Interfaces:
OutOfPlaceVectorSorter<V>
public class FixedWidthOutOfPlaceVectorSorter<V extends BaseFixedWidthVector>
extends Object
implements OutOfPlaceVectorSorter<V>
Default out-of-place sorter for fixed-width vectors. It is an out-of-place sort, with time
complexity O(n*log(n)).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sortOutOfPlace
(V srcVector, V dstVector, VectorValueComparator<V> comparator) Sort a vector out-of-place.
-
Field Details
-
indexSorter
-
-
Constructor Details
-
FixedWidthOutOfPlaceVectorSorter
public FixedWidthOutOfPlaceVectorSorter()
-
-
Method Details
-
sortOutOfPlace
Description copied from interface:OutOfPlaceVectorSorter
Sort a vector out-of-place.- Specified by:
sortOutOfPlace
in interfaceOutOfPlaceVectorSorter<V extends BaseFixedWidthVector>
- Parameters:
srcVector
- the input vector.dstVector
- the output vector, which has the same size as the input vector.comparator
- the criteria for sort.
-