@Deprecated public class GuaguaWritableSerializer<RESULT extends ml.shifu.guagua.io.Bytable> extends ml.shifu.guagua.io.BytableSerializer<RESULT>
GuaguaWritableSerializer is to provide the functionality to support use hadoop writable interface.
By using this, one should set result class name to Writable, not Bytable like this:
conf.set(GuaguaConstants.GUAGUA_RESULT_CLASS, LongWritable.class.getName());
| Constructor and Description |
|---|
GuaguaWritableSerializer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RESULT |
bytesToObject(byte[] data,
String className)
Deprecated.
De-serialize from bytes to object.
|
public RESULT bytesToObject(byte[] data, String className)
bytesToObject in interface ml.shifu.guagua.io.Serializer<RESULT extends ml.shifu.guagua.io.Bytable>bytesToObject in class ml.shifu.guagua.io.BytableSerializer<RESULT extends ml.shifu.guagua.io.Bytable>NullPointerException - if className or data is null.ml.shifu.guagua.GuaguaRuntimeException - if any IO exception or other reflection exception.Copyright © 2019. All Rights Reserved.