Class MetadataV4UnionChecker

java.lang.Object
org.apache.arrow.vector.validate.MetadataV4UnionChecker

public final class MetadataV4UnionChecker extends Object
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 Details

    • MetadataV4UnionChecker

      public MetadataV4UnionChecker()
  • Method Details

    • checkForUnion

      public static 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).
    • checkRead

      public static void checkRead(Schema schema, MetadataVersion metadataVersion) throws IOException
      Check the schema, raising an error if an unsupported feature is used (e.g. unions with < V5 metadata).
      Throws:
      IOException