Data stored as Avro with a column-level schema maps to an object container file. Follow the steps required to gather the necessary data and construct the object container file:
- Retrieve the schema used for the column by selecting the schema from the dictionary based on its name, or by selecting the schema from any instance of the column using the getSchema method of the DATASET data type. If you also need the schema length, use the getSchemaSize method.
- Retrieve all of the binary-encoded Avro values from the column using the getRawData or getRawDataLob methods of the DATASET data type. If you also need the length of these binary-encoded Avro values, use the getRawDataSize method.
Using the schema and binary-encoded Avro values, you can construct an object container file using the Avro libraries.