T
- inner vector type.public static class DefaultVectorComparators.FixedSizeListComparator<T extends ValueVector> extends VectorValueComparator<FixedSizeListVector>
RepeatedValueVector
.
It works by comparing the underlying vector in a lexicographic order.valueWidth, vector1, vector2
Constructor and Description |
---|
FixedSizeListComparator(VectorValueComparator<T> innerComparator) |
Modifier and Type | Method and Description |
---|---|
void |
attachVectors(FixedSizeListVector vector1,
FixedSizeListVector vector2)
Attach vectors to compare.
|
int |
compareNotNull(int index1,
int index2)
Compare two values, given their indices.
|
VectorValueComparator<FixedSizeListVector> |
createNew()
Creates a comparator of the same type.
|
attachVector, checkNullsOnCompare, compare, getValueWidth
public FixedSizeListComparator(VectorValueComparator<T> innerComparator)
public int compareNotNull(int index1, int index2)
VectorValueComparator
compareNotNull
in class VectorValueComparator<FixedSizeListVector>
index1
- index of the first value to compare.index2
- index of the second value to compare.public VectorValueComparator<FixedSizeListVector> createNew()
VectorValueComparator
createNew
in class VectorValueComparator<FixedSizeListVector>
public void attachVectors(FixedSizeListVector vector1, FixedSizeListVector vector2)
VectorValueComparator
attachVectors
in class VectorValueComparator<FixedSizeListVector>
vector1
- the first vector to compare.vector2
- the second vector to compare.Copyright © 2024 The Apache Software Foundation. All rights reserved.