java.lang.Object
org.apache.arrow.vector.compare.VectorEqualsVisitor
Visitor to compare vectors equal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
vectorEquals
(ValueVector left, ValueVector right) Checks if two vectors are equals with default type comparator.static boolean
vectorEquals
(ValueVector left, ValueVector right, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) Checks if two vectors are equals.
-
Constructor Details
-
VectorEqualsVisitor
public VectorEqualsVisitor()
-
-
Method Details
-
vectorEquals
Checks if two vectors are equals with default type comparator.- Parameters:
left
- the left vector to compare.right
- the right vector to compare.- Returns:
- true if the vectors are equal, and false otherwise.
-
vectorEquals
public static boolean vectorEquals(ValueVector left, ValueVector right, BiFunction<ValueVector, ValueVector, Boolean> typeComparator) Checks if two vectors are equals.- Parameters:
left
- the left vector to compare.right
- the right vector to compare.typeComparator
- type comparator to compare vector type.- Returns:
- true if the vectors are equal, and false otherwise.
-