Hadoop源码分析之产生InputSplit文件过程
public interface Writable {/** * Serialize the fields of this object to <code>out</code>.*
*
@param out <code>DataOuput</code> to serialize this object into. *
@throws IOException*/ void write(DataOutput out) throws IOException;
/**
* Deserialize the fields of this object from <code>in</code>.
*
* <p>For efficiency, implementations should attempt to re-use storage in the
* existing object where possible.</p>
*
* @param in <code>DataInput</code> to deseriablize this object from.
* @throws IOException
*/
void readFields(DataInput in) throws IOException;
页:
[1]