ml.shifu.guagua.io
接口 Bytable

所有已知实现类:
HaltBytable

public interface Bytable

Copy from hadoop io writable. The reason is that we don't want to depend on hadoop for guagua core project.

To use hadoop-original writable, we have adapter in GuaguaWritableAdapter in guagua-mapreduce module to help you re-use hadoop writables.


方法摘要
 void readFields(DataInput in)
          De-serialize the fields of this object from in.
 void write(DataOutput out)
          Serialize the fields of this object to out.
 

方法详细信息

write

void write(DataOutput out)
           throws IOException
Serialize the fields of this object to out.

参数:
out - DataOuput to serialize this object into.
抛出:
IOException - In case of any io exception.

readFields

void readFields(DataInput in)
                throws IOException
De-serialize the fields of this object from in.

For efficiency, implementations should attempt to re-use storage in the existing object where possible.

参数:
in - DataInput to de-seriablize this object from.
抛出:
IOException - In case of any io exception.


Copyright © 2014. All Rights Reserved.