public class AvroSchemaConverter extends Object
Converts an Avro schema into a Parquet schema. See package documentation for details of the mapping.
| Constructor and Description |
|---|
AvroSchemaConverter() |
| Modifier and Type | Method and Description |
|---|---|
MessageType |
convert(org.apache.avro.Schema avroSchema) |
static org.apache.avro.Schema |
getNonNull(org.apache.avro.Schema schema)
Given a schema, check to see if it is a union of a null type and a regular schema,
and then return the non-null sub-schema.
|
public static org.apache.avro.Schema getNonNull(org.apache.avro.Schema schema)
schema - The schema to checkpublic MessageType convert(org.apache.avro.Schema avroSchema)
Copyright © 2013. All Rights Reserved.