20 package uk.ac.cam.eng.extraction.hadoop.datatypes;
22 import java.io.DataInput;
23 import java.io.DataOutput;
24 import java.io.IOException;
26 import org.apache.hadoop.io.ByteWritable;
27 import org.apache.hadoop.io.IntWritable;
28 import org.apache.hadoop.io.Writable;
67 ByteWritable provenanceName, IntWritable count) {
68 provenance.
put(provenanceName, count);
72 alignment.put(align, count);
86 public void write(DataOutput out)
throws IOException {
87 provenance.
write(out);
97 public void readFields(DataInput in)
throws IOException {
103 return provenance.
toString() +
"\t" + alignment.toString();