ml.shifu.guagua.yarn
类 GuaguaWritableSerializer<RESULT extends Bytable>
java.lang.Object
ml.shifu.guagua.io.BytableSerializer<RESULT>
ml.shifu.guagua.yarn.GuaguaWritableSerializer<RESULT>
- 所有已实现的接口:
- Serializer<RESULT>
public class GuaguaWritableSerializer<RESULT extends Bytable>
- extends 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());
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuaguaWritableSerializer
public GuaguaWritableSerializer()
bytesToObject
public RESULT bytesToObject(byte[] data,
String className)
- De-serialize from bytes to object. One should provide the instance before de-serializing the object.
- 指定者:
- 接口
Serializer<RESULT extends Bytable> 中的 bytesToObject - 覆盖:
- 类
BytableSerializer<RESULT extends Bytable> 中的 bytesToObject
- 抛出:
NullPointerException - if className or data is null.
GuaguaRuntimeException - if any io exception.
Copyright © 2014. All Rights Reserved.