|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,LuceneDocumentWrapper>
org.apache.hadoop.hbase.mapreduce.IndexRecordWriter
public class IndexRecordWriter
Writes the records into a Lucene index writer.
Constructor Summary | |
---|---|
IndexRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context,
org.apache.hadoop.fs.FileSystem fs,
org.apache.lucene.index.IndexWriter writer,
IndexConfiguration indexConf,
org.apache.hadoop.fs.Path perm,
org.apache.hadoop.fs.Path temp)
Creates a new instance. |
Method Summary | |
---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Closes the writer. |
void |
write(ImmutableBytesWritable key,
LuceneDocumentWrapper value)
Writes the record into an index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context, org.apache.hadoop.fs.FileSystem fs, org.apache.lucene.index.IndexWriter writer, IndexConfiguration indexConf, org.apache.hadoop.fs.Path perm, org.apache.hadoop.fs.Path temp)
context
- The task context.fs
- The file system.writer
- The index writer.indexConf
- The index configuration.perm
- The permanent path in the DFS.temp
- The temporary local path.Method Detail |
---|
public void write(ImmutableBytesWritable key, LuceneDocumentWrapper value) throws IOException
write
in class org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,LuceneDocumentWrapper>
key
- The current key.value
- The current value.
IOException
- When the index is faulty.RecordWriter.write(java.lang.Object, java.lang.Object)
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
close
in class org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,LuceneDocumentWrapper>
context
- The current context.
IOException
- When closing the writer fails.RecordWriter.close(org.apache.hadoop.mapreduce.TaskAttemptContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |