org.apache.hadoop.hbase.mapred
Class IndexTableReduce

java.lang.Object
  extended by org.apache.hadoop.mapred.MapReduceBase
      extended by org.apache.hadoop.hbase.mapred.IndexTableReduce
All Implemented Interfaces:
org.apache.hadoop.io.Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>

public class IndexTableReduce
extends org.apache.hadoop.mapred.MapReduceBase
implements org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>

Construct a Lucene document per row, which is consumed by IndexOutputFormat to build a Lucene index


Constructor Summary
IndexTableReduce()
           
 
Method Summary
 void close()
           
 void configure(org.apache.hadoop.mapred.JobConf job)
           
 void reduce(org.apache.hadoop.io.Text key, Iterator<org.apache.hadoop.io.MapWritable> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> output, org.apache.hadoop.mapred.Reporter reporter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexTableReduce

public IndexTableReduce()
Method Detail

configure

public void configure(org.apache.hadoop.mapred.JobConf job)
Specified by:
configure in interface org.apache.hadoop.mapred.JobConfigurable
Overrides:
configure in class org.apache.hadoop.mapred.MapReduceBase

close

public void close()
           throws IOException
Specified by:
close in interface org.apache.hadoop.io.Closeable
Overrides:
close in class org.apache.hadoop.mapred.MapReduceBase
Throws:
IOException

reduce

public void reduce(org.apache.hadoop.io.Text key,
                   Iterator<org.apache.hadoop.io.MapWritable> values,
                   org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> output,
                   org.apache.hadoop.mapred.Reporter reporter)
            throws IOException
Specified by:
reduce in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.MapWritable,org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
Throws:
IOException


Copyright © 2008 The Apache Software Foundation