com.atlassian.jira.issue.statistics.util
Class OneDimensionalDocIssueHitCollector
java.lang.Object
org.apache.lucene.search.HitCollector
com.atlassian.jira.issue.statistics.util.AbstractOneDimensionalHitCollector
com.atlassian.jira.issue.statistics.util.OneDimensionalDocIssueHitCollector
public class OneDimensionalDocIssueHitCollector
- extends AbstractOneDimensionalHitCollector
A HitCollector that accesses the document directly to get the values for a field. This HitCollector has low memory
usage (it iterates over the documents as neccessary), and is useful when you are doing a collection where there are a
limited number of documents, but a large number of terms in the entire index.
Method Summary |
protected 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 void |
collectWithTerms(int docId,
Collection<String> terms)
Implement this if you would like to do something with the hit we have found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OneDimensionalDocIssueHitCollector
public OneDimensionalDocIssueHitCollector(String luceneGroupField,
StatsGroup statsGroup,
org.apache.lucene.index.IndexReader searcher,
IssueFactory issueFactory,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache)
collectIrrelevant
protected void collectIrrelevant(int docId)
- Description copied from class:
AbstractOneDimensionalHitCollector
- Implement this if you would like to do something when the hit collector has encountered a docId that
contains an irrelevant data match
- Specified by:
collectIrrelevant
in class AbstractOneDimensionalHitCollector
- Parameters:
docId
- the match we have found
collectWithTerms
protected void collectWithTerms(int docId,
Collection<String> terms)
- Description copied from class:
AbstractOneDimensionalHitCollector
- Implement this if you would like to do something with the hit we have found.
- Specified by:
collectWithTerms
in class AbstractOneDimensionalHitCollector
- Parameters:
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
Copyright © 2002-2010 Atlassian. All Rights Reserved.