org.apache.hadoop.io.serializer
Class WritableSerialization
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.io.serializer.WritableSerialization
- All Implemented Interfaces:
- Configurable, Serialization<Writable>
public class WritableSerialization
- extends Configured
- implements Serialization<Writable>
A Serialization for Writables that delegates to
Writable.write(java.io.DataOutput) and
Writable.readFields(java.io.DataInput).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WritableSerialization
public WritableSerialization()
accept
public boolean accept(Class<?> c)
- Description copied from interface:
Serialization
- Allows clients to test whether this
Serialization
supports the given class.
- Specified by:
accept in interface Serialization<Writable>
getDeserializer
public Deserializer<Writable> getDeserializer(Class<Writable> c)
- Specified by:
getDeserializer in interface Serialization<Writable>
- Returns:
- a
Deserializer for the given class.
getSerializer
public Serializer<Writable> getSerializer(Class<Writable> c)
- Specified by:
getSerializer in interface Serialization<Writable>
- Returns:
- a
Serializer for the given class.
Copyright © 2009 The Apache Software Foundation