org.apache.hadoop.hbase.mapred
Class IndexOutputFormat
java.lang.Object
org.apache.hadoop.mapred.OutputFormatBase<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
org.apache.hadoop.hbase.mapred.IndexOutputFormat
- All Implemented Interfaces:
- org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
public class IndexOutputFormat
- extends org.apache.hadoop.mapred.OutputFormatBase<org.apache.hadoop.io.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.
Method Summary |
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> |
getRecordWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job,
String name,
org.apache.hadoop.util.Progressable progress)
|
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 |
IndexOutputFormat
public IndexOutputFormat()
getRecordWriter
public org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper> getRecordWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.mapred.JobConf job,
String name,
org.apache.hadoop.util.Progressable progress)
throws IOException
- Specified by:
getRecordWriter
in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
- Specified by:
getRecordWriter
in class org.apache.hadoop.mapred.OutputFormatBase<org.apache.hadoop.io.Text,org.apache.hadoop.hbase.mapred.LuceneDocumentWrapper>
- Throws:
IOException
Copyright © 2008 The Apache Software Foundation