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