edu.mayo.informatics.indexer.lucene.hitcollector
Class BestScoreOfEntityHitCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by edu.mayo.informatics.indexer.lucene.hitcollector.AbstractBestScoreOfEntityHitCollector<java.util.List<org.apache.lucene.search.ScoreDoc>>
          extended by edu.mayo.informatics.indexer.lucene.hitcollector.BestScoreOfEntityHitCollector
Direct Known Subclasses:
BitSetFilteringBestScoreOfEntityHitCollector

public class BestScoreOfEntityHitCollector
extends AbstractBestScoreOfEntityHitCollector<java.util.List<org.apache.lucene.search.ScoreDoc>>

The Class BestScoreOfEntityHitCollector.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.mayo.informatics.indexer.lucene.hitcollector.AbstractBestScoreOfEntityHitCollector
AbstractBestScoreOfEntityHitCollector.ScoreComparator
 
Constructor Summary
BestScoreOfEntityHitCollector(org.apache.lucene.search.DocIdSetIterator boundryDocIterator, int maxDoc)
           
 
Method Summary
protected  void addToReturnValue(java.util.List<org.apache.lucene.search.ScoreDoc> results, int docId, float score)
           
protected  java.util.List<org.apache.lucene.search.ScoreDoc> initializeResults()
           
 
Methods inherited from class edu.mayo.informatics.indexer.lucene.hitcollector.AbstractBestScoreOfEntityHitCollector
collect, getEndOfBoundary, getMaxDoc, getResult, getStartOfBoundary, postProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BestScoreOfEntityHitCollector

public BestScoreOfEntityHitCollector(org.apache.lucene.search.DocIdSetIterator boundryDocIterator,
                                     int maxDoc)
Method Detail

addToReturnValue

protected void addToReturnValue(java.util.List<org.apache.lucene.search.ScoreDoc> results,
                                int docId,
                                float score)
Specified by:
addToReturnValue in class AbstractBestScoreOfEntityHitCollector<java.util.List<org.apache.lucene.search.ScoreDoc>>

initializeResults

protected java.util.List<org.apache.lucene.search.ScoreDoc> initializeResults()
Specified by:
initializeResults in class AbstractBestScoreOfEntityHitCollector<java.util.List<org.apache.lucene.search.ScoreDoc>>

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.