T
- the Java type of records created by this ReadSupportpublic class AvroReadSupport<T> extends ReadSupport<T>
ReadSupport
for avro generic, specific, and
reflect models. Use AvroParquetReader
or
AvroParquetInputFormat
rather than using this class directly.ReadSupport.ReadContext
Modifier and Type | Field and Description |
---|---|
static String |
AVRO_COMPATIBILITY |
static String |
AVRO_DATA_SUPPLIER |
static boolean |
AVRO_DEFAULT_COMPATIBILITY |
static String |
AVRO_REQUESTED_PROJECTION |
PARQUET_READ_SCHEMA
Constructor and Description |
---|
AvroReadSupport() |
AvroReadSupport(org.apache.avro.generic.GenericData model) |
Modifier and Type | Method and Description |
---|---|
ReadSupport.ReadContext |
init(org.apache.hadoop.conf.Configuration configuration,
Map<String,String> keyValueMetaData,
MessageType fileSchema) |
RecordMaterializer<T> |
prepareForRead(org.apache.hadoop.conf.Configuration configuration,
Map<String,String> keyValueMetaData,
MessageType fileSchema,
ReadSupport.ReadContext readContext) |
static void |
setAvroDataSupplier(org.apache.hadoop.conf.Configuration configuration,
Class<? extends AvroDataSupplier> clazz) |
static void |
setAvroReadSchema(org.apache.hadoop.conf.Configuration configuration,
org.apache.avro.Schema avroReadSchema) |
static void |
setRequestedProjection(org.apache.hadoop.conf.Configuration configuration,
org.apache.avro.Schema requestedProjection) |
getSchemaForRead, getSchemaForRead, init
public static String AVRO_REQUESTED_PROJECTION
public static String AVRO_DATA_SUPPLIER
public static final String AVRO_COMPATIBILITY
public static final boolean AVRO_DEFAULT_COMPATIBILITY
public AvroReadSupport()
public AvroReadSupport(org.apache.avro.generic.GenericData model)
public static void setRequestedProjection(org.apache.hadoop.conf.Configuration configuration, org.apache.avro.Schema requestedProjection)
configuration
- a configurationrequestedProjection
- the requested projection schemaAvroParquetInputFormat.setRequestedProjection(org.apache.hadoop.mapreduce.Job, org.apache.avro.Schema)
public static void setAvroReadSchema(org.apache.hadoop.conf.Configuration configuration, org.apache.avro.Schema avroReadSchema)
configuration
- a configurationavroReadSchema
- the read schemaAvroParquetInputFormat.setAvroReadSchema(org.apache.hadoop.mapreduce.Job, org.apache.avro.Schema)
public static void setAvroDataSupplier(org.apache.hadoop.conf.Configuration configuration, Class<? extends AvroDataSupplier> clazz)
public ReadSupport.ReadContext init(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema)
init
in class ReadSupport<T>
public RecordMaterializer<T> prepareForRead(org.apache.hadoop.conf.Configuration configuration, Map<String,String> keyValueMetaData, MessageType fileSchema, ReadSupport.ReadContext readContext)
prepareForRead
in class ReadSupport<T>
Copyright © 2019 The Apache Software Foundation. All rights reserved.