anl.aida.reader
Interface ReaderResultProcessor

All Known Implementing Classes:
LuceneRRProcessor, ResultCacher, ScraperTests.RRProcessor

public interface ReaderResultProcessor

Processes a ReaderResult is someone implementor specific way. For example, an implemenation might add the results to a lucene index, or add them to a JCas etc.


Method Summary
 void done()
          Notifies the processor that it is done processing results.
 void initialize()
          Initializes the processor.
 void process(ReaderResult result)
          Process the specified result.
 

Method Detail

initialize

void initialize()
                throws AIDAException
Initializes the processor.

Throws:
AIDAException

process

void process(ReaderResult result)
             throws AIDAException
Process the specified result.

Parameters:
result - the result to process
Throws:
AIDAException - if there is an error processing the result

done

void done()
          throws java.io.IOException
Notifies the processor that it is done processing results.

Throws:
AIDAException
java.io.IOException