org.crosswire.jsword.index.lucene
Class VerseCollector
java.lang.Object
org.apache.lucene.search.Collector
org.crosswire.jsword.index.lucene.VerseCollector
public class VerseCollector
- extends org.apache.lucene.search.Collector
A simple collector of verses that stores the verses in a Key.
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Constructor Summary |
VerseCollector(Versification refSystem,
org.apache.lucene.search.Searcher searcher,
Key results)
Create a collector for the searcher that populates results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
docBase
private int docBase
v11n
private Versification v11n
searcher
private org.apache.lucene.search.Searcher searcher
results
private Key results
VerseCollector
public VerseCollector(Versification refSystem,
org.apache.lucene.search.Searcher searcher,
Key results)
- Create a collector for the searcher that populates results.
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
collect
public void collect(int docId)
throws IOException
- Specified by:
collect
in class org.apache.lucene.search.Collector
- Throws:
IOException
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
- Specified by:
setNextReader
in class org.apache.lucene.search.Collector
- Throws:
IOException
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
- Specified by:
setScorer
in class org.apache.lucene.search.Collector
- Throws:
IOException