public final class WritableSerializer extends Object
Writable
s
into String using the below Codec
that
encodes and 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-serializationModifier 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 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 © 2016 The Apache Software Foundation. All rights reserved.