Class ValueEpsilonEqualizers.Float4EpsilonEqualizer
java.lang.Object
org.apache.arrow.vector.compare.util.ValueEpsilonEqualizers.Float4EpsilonEqualizer
- All Implemented Interfaces:
Cloneable
,VectorValueEqualizer<Float4Vector>
- Enclosing class:
- ValueEpsilonEqualizers
public static class ValueEpsilonEqualizers.Float4EpsilonEqualizer
extends Object
implements VectorValueEqualizer<Float4Vector>
Difference function for float values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a equalizer of the same type.final boolean
valuesEqual
(Float4Vector vector1, int index1, Float4Vector vector2, int index2) Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.
-
Constructor Details
-
Float4EpsilonEqualizer
public Float4EpsilonEqualizer(float epsilon)
-
-
Method Details
-
valuesEqual
public final boolean valuesEqual(Float4Vector vector1, int index1, Float4Vector vector2, int index2) Description copied from interface:VectorValueEqualizer
Checks if the vectors are equal at the given positions, given that the values at both positions are non-null.- Specified by:
valuesEqual
in interfaceVectorValueEqualizer<Float4Vector>
- 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
Description copied from interface:VectorValueEqualizer
Creates a equalizer of the same type.- Specified by:
clone
in interfaceVectorValueEqualizer<Float4Vector>
- Overrides:
clone
in classObject
- Returns:
- the newly created equalizer.
-