org.apache.hadoop.io.serializer
Class SerializationFactory
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.io.serializer.SerializationFactory
- All Implemented Interfaces:
- Configurable
public class SerializationFactory
- extends Configured
A factory for Serialization
s.
Constructor Summary |
SerializationFactory(Configuration conf)
Serializations are found by reading the io.serializations
property from conf , which is a comma-delimited list of
classnames. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializationFactory
public SerializationFactory(Configuration conf)
Serializations are found by reading the io.serializations
property from conf
, which is a comma-delimited list of
classnames.
getSerializer
public <T> Serializer<T> getSerializer(Class<T> c)
getDeserializer
public <T> Deserializer<T> getDeserializer(Class<T> c)
getSerialization
public <T> Serialization<T> getSerialization(Class<T> c)
Copyright © 2009 The Apache Software Foundation