Class VectorEqualsVisitor

java.lang.Object
org.apache.arrow.vector.compare.VectorEqualsVisitor

public class VectorEqualsVisitor extends Object
Visitor to compare vectors equal.
  • Constructor Details

    • VectorEqualsVisitor

      public VectorEqualsVisitor()
  • Method Details

    • vectorEquals

      public static boolean vectorEquals(ValueVector left, ValueVector right)
      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.