org.apache.hadoop.hbase.mapred
Class IndexOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.OutputFormatBase<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
      extended by org.apache.hadoop.hbase.mapred.IndexOutputFormat
All Implemented Interfaces:
OutputFormat<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>

public class IndexOutputFormat
extends OutputFormatBase<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>

Create a local index, unwrap Lucene documents created by reduce, add them to the index, and copy the index to the destination.


Constructor Summary
IndexOutputFormat()
           
 
Method Summary
 RecordWriter<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> getRecordWriter(FileSystem fs, JobConf job, String name, Progressable progress)
          Get the RecordWriter for the given job.
 
Methods inherited from class org.apache.hadoop.mapred.OutputFormatBase
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, setCompressOutput, setOutputCompressorClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexOutputFormat

public IndexOutputFormat()
Method Detail

getRecordWriter

public RecordWriter<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> getRecordWriter(FileSystem fs,
                                                                                               JobConf job,
                                                                                               String name,
                                                                                               Progressable progress)
                                                                                        throws IOException
Description copied from interface: OutputFormat
Get the RecordWriter for the given job.

Specified by:
getRecordWriter in interface OutputFormat<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
Specified by:
getRecordWriter in class OutputFormatBase<Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
job - configuration for the job whose output is being written.
name - the unique name for this part of the output.
progress - mechanism for reporting progress while writing to file.
Returns:
a RecordWriter to write the output for the job.
Throws:
IOException


Copyright © 2006 The Apache Software Foundation