public class WritableSerializer extends Object
Writable
s
into String using the below Codec
that
encodes & decodes Writable
s
By default this stores the class name in the serialized
form so that the specific type can be instantiated on
de-serialization. However, this also needs the jobconf
to passed in while de-serializationConstructor and Description |
---|
WritableSerializer() |
Modifier and Type | Method and Description |
---|---|
static <E extends org.apache.hadoop.io.Writable> |
deserialize(String serializedWritable) |
static <E extends org.apache.hadoop.io.Writable> |
deserialize(String serializedWritable,
org.apache.hadoop.mapred.JobConf jobConf) |
static <E extends org.apache.hadoop.io.Writable> |
serialize(E writable) |
public WritableSerializer()
public static <E extends org.apache.hadoop.io.Writable> E deserialize(String serializedWritable)
public static <E extends org.apache.hadoop.io.Writable> E deserialize(String serializedWritable, org.apache.hadoop.mapred.JobConf jobConf)
Copyright © 2015 The Apache Software Foundation. All rights reserved.