[ 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 18:59]
straka
courses:mapreduce-tutorial:step-27 [2012/01/28 18:59]
straka
Line 40: Line 40:
 } }
 </code> </code>
-Remark: If the ''BERIntWritable'' class is not declared top-level, it must be declared **//static//**.+Remark: If the ''BERIntWritable'' class is not declared top-level, it must be declared **''static''**.
  
 Such implementation can be used as a type of //values//. If we wanted to use it as a type of //keys//, we need to implement [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/io/WritableComparable.html|WritableComparable]] instead of just ''Writable''. It is enough to add ''compareTo'' method to current implementation: Such implementation can be used as a type of //values//. If we wanted to use it as a type of //keys//, we need to implement [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/io/WritableComparable.html|WritableComparable]] instead of just ''Writable''. It is enough to add ''compareTo'' method to current implementation:

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