org.apache.hadoop.hbase.mapreduce
Class IndexOutputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.OutputFormat<K,V>
      extended by org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<ImmutableBytesWritable,LuceneDocumentWrapper>
          extended by org.apache.hadoop.hbase.mapreduce.IndexOutputFormat

public class IndexOutputFormat
extends org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<ImmutableBytesWritable,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
 org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,LuceneDocumentWrapper> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
          Returns the record writer.
 
Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
 
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 org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,LuceneDocumentWrapper> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                                                       throws IOException
Returns the record writer.

Specified by:
getRecordWriter in class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<ImmutableBytesWritable,LuceneDocumentWrapper>
Parameters:
context - The current task context.
Returns:
The record writer.
Throws:
IOException - When there is an issue with the writer.
See Also:
FileOutputFormat.getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext)


Copyright © 2009 The Apache Software Foundation