Package 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
@Evolving
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).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAllows clients to test whether thisSerializationsupports the given class.Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
WritableSerialization
public WritableSerialization()
-
-
Method Details
-
accept
Description copied from interface:SerializationAllows clients to test whether thisSerializationsupports the given class.- Specified by:
acceptin interfaceSerialization<Writable>- Parameters:
c- class.- Returns:
- if accept true,not false.
-
getSerializer
- Specified by:
getSerializerin interfaceSerialization<Writable>- Parameters:
c- class.- Returns:
- a
Serializerfor the given class.
-
getDeserializer
- Specified by:
getDeserializerin interfaceSerialization<Writable>- Parameters:
c- class.- Returns:
- a
Deserializerfor the given class.
-