org.apache.hadoop.hbase.mapreduce
Class LuceneDocumentWrapper

java.lang.Object
  extended by org.apache.hadoop.hbase.mapreduce.LuceneDocumentWrapper
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class LuceneDocumentWrapper
extends Object
implements org.apache.hadoop.io.Writable

A utility class used to pass a lucene document from reduce to OutputFormat. It doesn't really serialize/deserialize a lucene document.


Field Summary
protected  org.apache.lucene.document.Document doc
          The document to add to the index.
 
Constructor Summary
LuceneDocumentWrapper(org.apache.lucene.document.Document doc)
           
 
Method Summary
 org.apache.lucene.document.Document get()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected org.apache.lucene.document.Document doc
The document to add to the index.

Constructor Detail

LuceneDocumentWrapper

public LuceneDocumentWrapper(org.apache.lucene.document.Document doc)
Parameters:
doc -
Method Detail

get

public org.apache.lucene.document.Document get()
Returns:
the document

readFields

public void readFields(DataInput in)
Specified by:
readFields in interface org.apache.hadoop.io.Writable

write

public void write(DataOutput out)
Specified by:
write in interface org.apache.hadoop.io.Writable


Copyright © 2010 The Apache Software Foundation