anl.aida.ae.lucene
Interface ReaderProducer
- All Known Implementing Classes:
- CachedContentReader, LuceneTests.TestReaderProducer
public interface ReaderProducer
Interface for classes that can produce a Reader
to be used to retrieve content to be indexed by Lucene.
Method Summary |
java.io.Reader |
getReader(org.apache.lucene.document.Document doc)
Gets a reader to read content based on information
in the doc. |
getReader
java.io.Reader getReader(org.apache.lucene.document.Document doc)
throws java.io.IOException
- Gets a reader to read content based on information
in the doc. For example, the content may be some
fields in the document.
- Parameters:
doc
- the doc
- Returns:
- a reader to read content based on information
in the doc.
- Throws:
java.io.IOException
- if there is a problem getting the reader