com.atlassian.jira.issue.statistics.util
Class DocumentHashingHitCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by com.atlassian.jira.issue.statistics.util.DocumentHashingHitCollector

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

A HitCollector that iterates through the documents, and calculates a hash code.

This is useful if you wish to detemine if the results of a search have changed, but you don't want to calculate the results each time.

See Also:
PagerManager

Constructor Summary
DocumentHashingHitCollector()
           
 
Method Summary
 void collect(int doc, float score)
           
 int getHashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHashingHitCollector

public DocumentHashingHitCollector()
Method Detail

collect

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

getHashCode

public int getHashCode()


Copyright © 2002-2009 Atlassian. All Rights Reserved.