Javadoc update:

The example impl in Collector missed the new method acceptsDocsOutOfOrder, added and reformatted

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@788203 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-06-24 22:57:46 +00:00
parent 8173b9f253
commit 5f61172464
1 changed files with 6 additions and 1 deletions

View File

@ -93,9 +93,14 @@ import org.apache.lucene.index.IndexReader;
* searcher.search(query, new Collector() {
* private int docBase;
*
* // ignore scorer
* <em>// ignore scorer</em>
* public void setScorer(Scorer scorer) {
* }
*
* <em>// accept docs out of order (for a BitSet it doesn't matter)</em>
* public boolean acceptsDocsOutOfOrder() {
* return true;
* }
*
* public void collect(int doc) {
* bits.set(doc + docBase);