Module org.apache.arrow.vector
Package org.apache.arrow.vector.validate
Class MetadataV4UnionChecker
java.lang.Object
org.apache.arrow.vector.validate.MetadataV4UnionChecker
Given a field, checks that no Union fields are present.
This is intended to be used to prevent unions from being read/written with V4 metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkForUnion
(Iterator<Field> fields, MetadataVersion metadataVersion) Check the schema, raising an error if an unsupported feature is used (e.g. unions with < V5 metadata).static void
checkRead
(Schema schema, MetadataVersion metadataVersion) Check the schema, raising an error if an unsupported feature is used (e.g. unions with < V5 metadata).
-
Constructor Details
-
MetadataV4UnionChecker
public MetadataV4UnionChecker()
-
-
Method Details
-
checkForUnion
Check the schema, raising an error if an unsupported feature is used (e.g. unions with < V5 metadata). -
checkRead
Check the schema, raising an error if an unsupported feature is used (e.g. unions with < V5 metadata).- Throws:
IOException
-