|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.ae.lucene.LuceneRRProcessor
public class LuceneRRProcessor
Processes ReaderResults by adding them to a LuceneIndex.
Field Summary | |
---|---|
private org.apache.lucene.index.IndexWriter |
writer
|
Constructor Summary | |
---|---|
LuceneRRProcessor(org.apache.lucene.index.IndexWriter writer)
Creates a LuceneRRProcessor that will write
the specified index. |
Method Summary | |
---|---|
void |
done()
Notifies the processor that it is done processing results. |
void |
initialize()
Initializes the processor. |
void |
process(ReaderResult result)
Transforms the reader result to Document and then adds that document to a lucene index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.lucene.index.IndexWriter writer
Constructor Detail |
---|
public LuceneRRProcessor(org.apache.lucene.index.IndexWriter writer)
LuceneRRProcessor
that will write
the specified index.
writer
- Method Detail |
---|
public void process(ReaderResult result) throws AIDAException
process
in interface ReaderResultProcessor
result
- the result to add
AIDAException
- if there is an error processing the resultpublic void done() throws java.io.IOException
ReaderResultProcessor
done
in interface ReaderResultProcessor
java.io.IOException
public void initialize() throws AIDAException
ReaderResultProcessor
initialize
in interface ReaderResultProcessor
AIDAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |