org.apache.hadoop.hbase.mapreduce
Class LuceneDocumentWrapper
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
doc
protected org.apache.lucene.document.Document doc
- The document to add to the index.
LuceneDocumentWrapper
public LuceneDocumentWrapper(org.apache.lucene.document.Document doc)
- Parameters:
doc
-
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 © 2009 The Apache Software Foundation