public class AvroDatumConverterFactory extends Configured
Currently, only the following types have implemented converters:
Modifier and Type | Class and Description |
---|---|
static class |
AvroDatumConverterFactory.AvroWrapperConverter
Converts AvroWrappers into their wrapped Avro data.
|
static class |
AvroDatumConverterFactory.BooleanWritableConverter
Converts BooleanWritables into Booleans.
|
static class |
AvroDatumConverterFactory.BytesWritableConverter
Converts BytesWritables into ByteBuffers.
|
static class |
AvroDatumConverterFactory.ByteWritableConverter
Converts ByteWritables into GenericFixed of size 1.
|
static class |
AvroDatumConverterFactory.DoubleWritableConverter
Converts DoubleWritables into Doubles.
|
static class |
AvroDatumConverterFactory.FloatWritableConverter
Converts FloatWritables into Floats.
|
static class |
AvroDatumConverterFactory.IntWritableConverter
Converts IntWritables into Ints.
|
static class |
AvroDatumConverterFactory.LongWritableConverter
Converts LongWritables into Longs.
|
static class |
AvroDatumConverterFactory.NullWritableConverter
Converts NullWritables into Nulls.
|
static class |
AvroDatumConverterFactory.TextConverter
Converts Text into CharSequences.
|
Constructor and Description |
---|
AvroDatumConverterFactory(Configuration conf)
Creates a new
AvroDatumConverterFactory instance. |
Modifier and Type | Method and Description |
---|---|
<IN,OUT> AvroDatumConverter<IN,OUT> |
create(Class<IN> inputClass)
Creates a converter that turns objects of type
inputClass into Avro data. |
getConf, setConf
public AvroDatumConverterFactory(Configuration conf)
AvroDatumConverterFactory
instance.conf
- The job configuration.public <IN,OUT> AvroDatumConverter<IN,OUT> create(Class<IN> inputClass)
inputClass
into Avro data.inputClass
- The type of input data to convert.inputClass
into Avro data.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.