Class ValueEpsilonEqualizers.Float8EpsilonEqualizer
java.lang.Object
org.apache.arrow.vector.compare.util.ValueEpsilonEqualizers.Float8EpsilonEqualizer
- All Implemented Interfaces:
Cloneable
,VectorValueEqualizer<Float8Vector>
- Enclosing class:
- ValueEpsilonEqualizers
public static class ValueEpsilonEqualizers.Float8EpsilonEqualizer
extends Object
implements VectorValueEqualizer<Float8Vector>
Difference function for double values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a equalizer of the same type.final boolean
valuesEqual
(Float8Vector vector1, int index1, Float8Vector 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
-
Float8EpsilonEqualizer
public Float8EpsilonEqualizer(double epsilon)
-
-
Method Details
-
valuesEqual
public final boolean valuesEqual(Float8Vector vector1, int index1, Float8Vector 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<Float8Vector>
- 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<Float8Vector>
- Overrides:
clone
in classObject
- Returns:
- the newly created equalizer.
-