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
-
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.static void
checkRead
(Schema schema, MetadataVersion metadataVersion) Check the schema, raising an error if an unsupported feature is used (e.g.
-
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
-