com.atlassian.jira.issue.statistics.util
Class DocumentHashingHitCollector
java.lang.Object
org.apache.lucene.search.Collector
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentHashingHitCollector
public DocumentHashingHitCollector()
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-2014 Atlassian. All Rights Reserved.