Package org.apache.arrow.vector.util
Class Validator
java.lang.Object
org.apache.arrow.vector.util.Validator
Utility class for validating arrow data structures.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
compareDictionaries
(List<DictionaryEncoding> encodings1, List<DictionaryEncoding> encodings2, DictionaryProvider provider1, DictionaryProvider provider2) Validate two Dictionary encodings and dictionaries with id's from the encodings.static void
compareDictionaryProviders
(DictionaryProvider provider1, DictionaryProvider provider2) Validate two dictionary providers are equal in structure and contents.static void
compareFieldVectors
(FieldVector vector1, FieldVector vector2) Validate two arrow FieldVectors are equal.static void
compareSchemas
(Schema schema1, Schema schema2) Validate two arrow schemas are equal.static void
compareVectorSchemaRoot
(VectorSchemaRoot root1, VectorSchemaRoot root2) Validate two arrow vectorSchemaRoot are equal.
-
Constructor Details
-
Validator
public Validator()
-
-
Method Details
-
compareSchemas
Validate two arrow schemas are equal.- Parameters:
schema1
- the 1st schema to compareschema2
- 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
Validate two arrow vectorSchemaRoot are equal.- Parameters:
root1
- the 1st schema to compareroot2
- the 2nd schema to compare- Throws:
IllegalArgumentException
- if they are different.
-
compareFieldVectors
Validate two arrow FieldVectors are equal.- Parameters:
vector1
- the 1st VectorField to comparevector2
- the 2nd VectorField to compare- Throws:
IllegalArgumentException
- if they are different
-