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