17 package uk.ac.cam.eng.extraction.hadoop.datatypes;
19 import java.io.DataInput;
20 import java.io.DataOutput;
21 import java.io.IOException;
23 import org.apache.hadoop.io.Writable;
57 this.features =
new FeatureMap(other.features);
62 this.provCounts = provCounts;
63 this.alignments = alignments;
64 this.features = features;
74 provCounts.
putAll(other.provCounts);
75 features.merge(other.features);
76 alignments.
merge(other.alignments);
80 public void readFields(DataInput in)
throws IOException {
87 public void write(DataOutput out)
throws IOException {
88 provCounts.
write(out);
90 alignments.
write(out);
120 this.provCounts = provCounts;
124 this.alignments = alignments;
128 this.features = features;
133 return "RuleData [provCounts=" + provCounts +
", alignments=" 134 + alignments +
", features=" + features +
"]";