com.browseengine.bobo.sort
Class SortCollectorImpl
java.lang.Object
org.apache.lucene.search.Collector
com.browseengine.bobo.sort.SortCollector
com.browseengine.bobo.sort.SortCollectorImpl
public class SortCollectorImpl
- extends SortCollector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortCollectorImpl
public SortCollectorImpl(DocComparatorSource compSource,
org.apache.lucene.search.SortField[] sortFields,
Browsable boboBrowser,
int offset,
int count,
boolean doScoring,
boolean fetchStoredFields)
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector
collect
public void collect(int doc)
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
getTotalHits
public int getTotalHits()
- Specified by:
getTotalHits in class SortCollector
topDocs
public BrowseHit[] topDocs()
throws IOException
- Specified by:
topDocs in class SortCollector
- Throws:
IOException
buildHits
protected static BrowseHit[] buildHits(com.browseengine.bobo.sort.SortCollectorImpl.MyScoreDoc[] scoreDocs,
org.apache.lucene.search.SortField[] sortFields,
Map<String,FacetHandler<?>> facetHandlerMap,
boolean fetchStoredFields)
throws IOException
- Throws:
IOException
Copyright © 2011. All Rights Reserved.