Class Validator

java.lang.Object
org.apache.arrow.vector.util.Validator

public class Validator extends Object
Utility class for validating arrow data structures.
  • Constructor Details

    • Validator

      public Validator()
  • Method Details

    • compareSchemas

      public static void compareSchemas(Schema schema1, Schema schema2)
      Validate two arrow schemas are equal.
      Parameters:
      schema1 - the 1st schema to compare
      schema2 - the 2nd schema to compare
      Throws:
      IllegalArgumentException - if they are different.
    • compareDictionaries

      public static void compareDictionaries(List<DictionaryEncoding> encodings1, List<DictionaryEncoding> encodings2, DictionaryProvider provider1, DictionaryProvider provider2)
      Validate two Dictionary encodings and dictionaries with id's from the encodings.
    • compareDictionaryProviders

      public static void compareDictionaryProviders(DictionaryProvider provider1, DictionaryProvider provider2)
      Validate two dictionary providers are equal in structure and contents.
    • compareVectorSchemaRoot

      public static void compareVectorSchemaRoot(VectorSchemaRoot root1, VectorSchemaRoot root2)
      Validate two arrow vectorSchemaRoot are equal.
      Parameters:
      root1 - the 1st schema to compare
      root2 - the 2nd schema to compare
      Throws:
      IllegalArgumentException - if they are different.
    • compareFieldVectors

      public static void compareFieldVectors(FieldVector vector1, FieldVector vector2)
      Validate two arrow FieldVectors are equal.
      Parameters:
      vector1 - the 1st VectorField to compare
      vector2 - the 2nd VectorField to compare
      Throws:
      IllegalArgumentException - if they are different