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

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

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

A Collector 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
 boolean acceptsDocsOutOfOrder()
           
 void collect(int doc)
           
 int getHashCode()
           
 void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
           
 void setScorer(org.apache.lucene.search.Scorer scorer)
           
 
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)
Specified by:
collect in class org.apache.lucene.search.Collector

setScorer

public void setScorer(org.apache.lucene.search.Scorer scorer)
               throws IOException
Specified by:
setScorer 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

acceptsDocsOutOfOrder

public boolean acceptsDocsOutOfOrder()
Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector

getHashCode

public int getHashCode()


Copyright © 2002-2012 Atlassian. All Rights Reserved.