[ 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 17:53]
straka
courses:mapreduce-tutorial:step-27 [2012/01/28 18:23]
straka
Line 3: Line 3:
 An important feature of the Java API is that custom data and format types can be provided. In this step we implement two custom data types. An important feature of the Java API is that custom data and format types can be provided. In this step we implement two custom data types.
  
-===== BerIntWritable =====+===== BERIntWritable ===== 
 + 
 +We want to implement BERIntWritable, which is an ''int'' stored in the format of ''pack "w", $num''. Quoting: //The bytes represent an unsigned integer in base 128, most significant digit first, with as few digits as possible. Bit eight (the high bit) is set on each byte except the last.// 
 + 
 +The new class must implement the [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/io/Writable.html|Writable]] interface: 
 + 
 +<code java> 
 + 
 +</code>
  
 ===== PairWritable<A, B> ===== ===== PairWritable<A, B> =====
  

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