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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDeserializer(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:
acceptin interfaceSerialization<T>
-
getDeserializer
Returns the specified map output deserializer. Defaults to the final output deserializer if no map output schema was specified.- Specified by:
getDeserializerin interfaceSerialization<T>
-
getSerializer
Returns the specified output serializer.- Specified by:
getSerializerin interfaceSerialization<T>
-