Package org.apache.arrow.algorithm.sort
Interface OutOfPlaceVectorSorter<V extends ValueVector>
- Type Parameters:
V
- the vector type.
- All Known Implementing Classes:
FixedWidthOutOfPlaceVectorSorter
,GeneralOutOfPlaceVectorSorter
,VariableWidthOutOfPlaceVectorSorter
public interface OutOfPlaceVectorSorter<V extends ValueVector>
Basic interface for sorting a vector out-of-place. That is, the sorting is performed on a
newly-created vector, and the original vector is not modified.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sortOutOfPlace
(V inVec, V outVec, VectorValueComparator<V> comparator) Sort a vector out-of-place.
-
Method Details
-
sortOutOfPlace
Sort a vector out-of-place.- Parameters:
inVec
- the input vector.outVec
- the output vector, which has the same size as the input vector.comparator
- the criteria for sort.
-