Package org.apache.avro.mapred
Class AvroSerialization<T>
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.avro.mapred.AvroSerialization<T>
- All Implemented Interfaces:
Configurable
,Serialization<AvroWrapper<T>>
The
Serialization
used by jobs configured with AvroJob
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getDeserializer
(Class<AvroWrapper<T>> c) Returns the specified map output deserializer.getSerializer
(Class<AvroWrapper<T>> c) Returns the specified output serializer.Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
AvroSerialization
public AvroSerialization()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceSerialization<T>
-
getDeserializer
Returns the specified map output deserializer. Defaults to the final output deserializer if no map output schema was specified.- Specified by:
getDeserializer
in interfaceSerialization<T>
-
getSerializer
Returns the specified output serializer.- Specified by:
getSerializer
in interfaceSerialization<T>
-