net.sf.lucis.core.support
Class AllCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by net.sf.lucis.core.support.CountingCollector
          extended by net.sf.lucis.core.support.AllCollector

public final class AllCollector
extends CountingCollector

A hit collector that collects the document index of all the hits.

Author:
Andres Rodriguez

Constructor Summary
AllCollector()
          Constructor.
 
Method Summary
 void collect(int doc)
           
 OpenBitSet getBits()
           
 void reset()
          Resets the collector.
 void setNextReader(IndexReader reader, int docBase)
           
 
Methods inherited from class net.sf.lucis.core.support.CountingCollector
acceptsDocsOutOfOrder, getCount, getMaxScore, setScorer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllCollector

public AllCollector()
Constructor.

Method Detail

setNextReader

public void setNextReader(IndexReader reader,
                          int docBase)
                   throws IOException
Overrides:
setNextReader in class CountingCollector
Throws:
IOException

collect

public void collect(int doc)
             throws IOException
Overrides:
collect in class CountingCollector
Throws:
IOException

reset

public void reset()
Resets the collector.

Overrides:
reset in class CountingCollector

getBits

public OpenBitSet getBits()


Copyright © 2013. All Rights Reserved.