com.atlassian.bamboo.index
Class HighestBuildNumberCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by com.atlassian.bamboo.index.HighestBuildNumberCollector

public class HighestBuildNumberCollector
extends org.apache.lucene.search.HitCollector

Returns the document with the highest "buildNumber" field.


Constructor Summary
HighestBuildNumberCollector(org.apache.lucene.search.Searcher searcher)
           
 
Method Summary
 void collect(int doc, float score)
           
 int getHighestBuildNumber()
           
 org.apache.lucene.document.Document getHighestBuildNumberDocument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HighestBuildNumberCollector

public HighestBuildNumberCollector(org.apache.lucene.search.Searcher searcher)
Method Detail

collect

public void collect(int doc,
                    float score)
Specified by:
collect in class org.apache.lucene.search.HitCollector

getHighestBuildNumber

public int getHighestBuildNumber()

getHighestBuildNumberDocument

public org.apache.lucene.document.Document getHighestBuildNumberDocument()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.