Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
courses:mapreduce-tutorial:step-27 [2012/01/28 19:04] straka |
courses:mapreduce-tutorial:step-27 [2012/01/28 20:02] straka |
||
---|---|---|---|
Line 76: | Line 76: | ||
public void setFirst(A first) { this.first = first; } | public void setFirst(A first) { this.first = first; } | ||
public void setSecond(B first) { this.second = second; } | public void setSecond(B first) { this.second = second; } | ||
+ | public String toString() { return String.format(" | ||
public PairWritable(A first, B second) { this.first = first; this.second = second; } | public PairWritable(A first, B second) { this.first = first; this.second = second; } | ||
} | } | ||
Line 109: | Line 110: | ||
public void setFirst(A first) { this.first = first; } | public void setFirst(A first) { this.first = first; } | ||
public void setSecond(B first) { this.second = second; } | public void setSecond(B first) { this.second = second; } | ||
+ | public String toString() { return String.format(" | ||
public PairWritableComparable(A first, B second) { this.first = first; this.second = second; } | public PairWritableComparable(A first, B second) { this.first = first; this.second = second; } | ||
} | } | ||
</ | </ | ||
- | Remark: | + | Remark: If the '' |
+ | ===== Exercise ===== |