的complexType我有這樣的類別:ReadField與hadoop的
public class Stripe implements WritableComparable<Stripe>{
private List<Term> occorrenze = new ArrayList<Term>();
public Stripe(){}
@Override
public void readFields(DataInput in) throws IOException {
}
}
public class Term implements WritableComparable<Term> {
private Text key;
private IntWritable frequency;
@Override
public void readFields(DataInput in) throws IOException {
this.key.readFields(in);
this.frequency.readFields(in);
}
條紋是期限(對文本和intWritable的)的列表。 如何設置從DataInput讀取複雜類型Stripe的方法「readField」?