org.apache.nutch.indexer
Class Indexer.LuceneDocumentWrapper

java.lang.Object
  extended by org.apache.nutch.indexer.Indexer.LuceneDocumentWrapper
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
Indexer

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

A utility class used to pass a lucene document from Indexer.reduce to Indexer.OutputFormat. Note: Despite its name, it can't properly wrap a lucene document - it doesn't know how to serialize/deserialize a lucene document.


Constructor Summary
Indexer.LuceneDocumentWrapper(Document doc)
           
 
Method Summary
 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
 

Constructor Detail

Indexer.LuceneDocumentWrapper

public Indexer.LuceneDocumentWrapper(Document doc)
Method Detail

get

public Document get()

readFields

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

write

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


Copyright © 2006 The Apache Software Foundation