public class AvroSchemaConverter extends Object
Converts an Avro schema into a Parquet schema, or vice versa. See package documentation for details of the mapping.
Modifier and Type | Field and Description |
---|---|
static String |
ADD_LIST_ELEMENT_RECORDS |
Constructor and Description |
---|
AvroSchemaConverter() |
AvroSchemaConverter(org.apache.hadoop.conf.Configuration conf) |
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 final String ADD_LIST_ELEMENT_RECORDS
public AvroSchemaConverter()
public AvroSchemaConverter(org.apache.hadoop.conf.Configuration conf)
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 © 2019 The Apache Software Foundation. All rights reserved.