V - type of the vector.public class StableVectorComparator<V extends ValueVector> extends VectorValueComparator<V>
valueWidth, vector1, vector2| Constructor and Description |
|---|
StableVectorComparator(VectorValueComparator<V> innerComparator)
Constructs a stable comparator from a given comparator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachVector(V vector)
Attach both vectors to compare to the same input vector.
|
void |
attachVectors(V vector1,
V vector2)
Attach vectors to compare.
|
int |
compareNotNull(int index1,
int index2)
Compare two values, given their indices.
|
VectorValueComparator<V> |
createNew()
Creates a comparator of the same type.
|
checkNullsOnCompare, compare, getValueWidthpublic StableVectorComparator(VectorValueComparator<V> innerComparator)
innerComparator - the comparator to convert to stable comparator..public void attachVector(V vector)
VectorValueComparatorattachVector in class VectorValueComparator<V extends ValueVector>vector - the vector to attach.public void attachVectors(V vector1, V vector2)
VectorValueComparatorattachVectors in class VectorValueComparator<V extends ValueVector>vector1 - the first vector to compare.vector2 - the second vector to compare.public int compareNotNull(int index1,
int index2)
VectorValueComparatorcompareNotNull in class VectorValueComparator<V extends ValueVector>index1 - index of the first value to compare.index2 - index of the second value to compare.public VectorValueComparator<V> createNew()
VectorValueComparatorcreateNew in class VectorValueComparator<V extends ValueVector>Copyright © 2023 The Apache Software Foundation. All rights reserved.