net.sf.eos.hadoop.mapred.index
Class IndexReducer<K extends WritableComparable>

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by net.sf.eos.hadoop.mapred.EosDocumentSupportMapReduceBase
          extended by net.sf.eos.hadoop.mapred.index.IndexReducer<K>
All Implemented Interfaces:
Closeable, JobConfigurable, Reducer<K,Text,K,ObjectWritable>

public class IndexReducer<K extends WritableComparable>
extends EosDocumentSupportMapReduceBase
implements Reducer<K,Text,K,ObjectWritable>


Constructor Summary
IndexReducer()
           
 
Method Summary
 void close()
           
 void configure(JobConf conf)
           
 void reduce(K key, Iterator<Text> lineIterator, OutputCollector<K,ObjectWritable> output, Reporter reporter)
           
 
Methods inherited from class net.sf.eos.hadoop.mapred.EosDocumentSupportMapReduceBase
eosDocumentToText, getSerializer, textToEosDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexReducer

public IndexReducer()
Method Detail

reduce

public void reduce(K key,
                   Iterator<Text> lineIterator,
                   OutputCollector<K,ObjectWritable> output,
                   Reporter reporter)
            throws IOException
Specified by:
reduce in interface Reducer<K extends WritableComparable,Text,K extends WritableComparable,ObjectWritable>
Throws:
IOException

configure

public void configure(JobConf conf)
Specified by:
configure in interface JobConfigurable
Overrides:
configure in class EosDocumentSupportMapReduceBase
Parameters:
conf - the configuration

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class EosDocumentSupportMapReduceBase
Throws:
IOException


Copyright © 2008. All Rights Reserved.