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