代码

来源:互联网 发布:大众软件 故事合集 编辑:程序博客网 时间:2024/06/12 08:45
//反序列化,从流中的二进制转换成IntPair  public void readFields(DataInput in) throws IOException          //序列化,将IntPair转化成使用流传送的二进制  public void write(DataOutput out)  //key的比较  public int compareTo(IntPair o)          //另外新定义的类应该重写的两个方法  //The hashCode() method is used by the HashPartitioner (the default partitioner in MapReduce)  public int hashCode()   public boolean equals(Object right)  

0 0
原创粉丝点击