Package org.apache.arrow.vector.compare
Interface VectorValueEqualizer<V extends ValueVector>
- Type Parameters:
V- the vector type.
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
ValueEpsilonEqualizers.Float4EpsilonEqualizer,ValueEpsilonEqualizers.Float8EpsilonEqualizer,ValueEpsilonEqualizers.FloatingPointEpsilonEqualizer
A function to determine if two vectors are equal at specified positions.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a equalizer of the same type.booleanvaluesEqual(V vector1, int index1, V vector2, int index2) Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.
-
Method Details
-
valuesEqual
Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.- Parameters:
vector1- the first vector.index1- index in the first vector.vector2- the second vector.index2- index in the second vector.- Returns:
- true if the two values are considered to be equal, and false otherwise.
-
clone
VectorValueEqualizer<V> clone()Creates a equalizer of the same type.- Returns:
- the newly created equalizer.
-