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 |
---|---|
org.apache.avro.Schema |
convert(MessageType parquetSchema) |
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)
public org.apache.avro.Schema convert(MessageType parquetSchema)
Copyright © 2015. All rights reserved.