|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Collector
com.atlassian.jira.issue.statistics.util.AbstractOneDimensionalHitCollector
@Internal public abstract class AbstractOneDimensionalHitCollector
Used to traverse a query and collect if the specified one dimension is relevant, this will keep track of the irrelevant count.
| Constructor Summary | |
|---|---|
AbstractOneDimensionalHitCollector(String fieldId,
org.apache.lucene.index.IndexReader indexReader,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache)
|
|
| Method Summary | |
|---|---|
boolean |
acceptsDocsOutOfOrder()
|
void |
collect(int i)
|
protected abstract void |
collectIrrelevant(int docId)
Implement this if you would like to do something when the hit collector has encountered a docId that contains an irrelevant data match |
protected abstract void |
collectWithTerms(int docId,
Collection<String> terms)
Implement this if you would like to do something with the hit we have found. |
long |
getHitCount()
Returns the number of times the collect(int) method was called. |
long |
getIrrelevantCount()
|
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 |
|---|
public AbstractOneDimensionalHitCollector(String fieldId,
org.apache.lucene.index.IndexReader indexReader,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache)
| Method Detail |
|---|
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
setScorer in class org.apache.lucene.search.CollectorIOException
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
setNextReader in class org.apache.lucene.search.CollectorIOExceptionpublic boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collectorpublic void collect(int i)
collect in class org.apache.lucene.search.Collectorpublic long getIrrelevantCount()
public long getHitCount()
collect(int) method was called. This should return the number of
unique issues that was matched during a search.
collect(int) method was called.protected abstract void collectIrrelevant(int docId)
docId - the match we have found
protected abstract void collectWithTerms(int docId,
Collection<String> terms)
docId - the doc id of the hitterms - the terms for the fieldId for this document, pre-calculated so you may not need to call getDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||