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>

已过时。 use GuaguaWritableSerializer

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());
 
 


构造方法摘要
GuaguaWritableSerializer()
          已过时。  
 
方法摘要
 RESULT bytesToObject(byte[] data, String className)
          已过时。 De-serialize from bytes to object.
 
从类 ml.shifu.guagua.io.BytableSerializer 继承的方法
objectToBytes
 
从类 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 © 2015. All Rights Reserved.