接口 ml.shifu.guagua.io.Serializer
的使用

使用 Serializer 的软件包
ml.shifu.guagua This package contains some common classes for both master and worker. 
ml.shifu.guagua.io This package contains guagua own io settings. 
 

ml.shifu.guaguaSerializer 的使用
 

返回 Serializerml.shifu.guagua 中的方法
 Serializer<MASTER_RESULT> BasicCoordinator.getMasterSerializer()
           
 Serializer<WORKER_RESULT> BasicCoordinator.getWorkerSerializer()
           
 

参数类型为 Serializerml.shifu.guagua 中的方法
 void BasicCoordinator.setMasterSerializer(Serializer<MASTER_RESULT> masterSerializer)
           
 void BasicCoordinator.setWorkerSerializer(Serializer<WORKER_RESULT> workerSerializer)
           
 

ml.shifu.guagua.ioSerializer 的使用
 

实现 Serializerml.shifu.guagua.io 中的类
 class BytableSerializer<RESULT extends Bytable>
          BytableSerializer is used to write Bytable object to bytes and read bytes to Bytable object.
 class Bzip2BytableSerializer<RESULT extends Bytable>
          Bzip2BytableSerializer is using bzip2 compression algorithm for serialization.
 class GZIPBytableSerializer<RESULT extends Bytable>
          GZIPBytableSerializer is using gzip compression algorithm for serialization.
 



Copyright © 2014. All Rights Reserved.