[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous 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("%s %s", first.toString(), second.toString()); }
   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("%s %s", first.toString(), second.toString()); }  
   public PairWritableComparable(A first, B second) { this.first = first; this.second = second; }   public PairWritableComparable(A first, B second) { this.first = first; this.second = second; }
 } }

[ Back to the navigation ] [ Back to the content ]