public class

OneDimensionalDocIssueHitCollector

extends AbstractOneDimensionalHitCollector
java.lang.Object
   ↳ org.apache.lucene.search.Collector
     ↳ com.atlassian.jira.issue.statistics.util.AbstractOneDimensionalHitCollector
       ↳ com.atlassian.jira.issue.statistics.util.OneDimensionalDocIssueHitCollector

Class Overview

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.

Summary

Public Constructors
OneDimensionalDocIssueHitCollector(String luceneGroupField, StatsGroup statsGroup, IndexReader searcher, IssueFactory issueFactory, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, FieldManager fieldManager, ProjectManager projectManager)
Protected Methods
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
void collectWithTerms(int docId, Collection<String> terms)
Implement this if you would like to do something with the hit we have found.
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.statistics.util.AbstractOneDimensionalHitCollector
From class org.apache.lucene.search.Collector
From class java.lang.Object

Public Constructors

public OneDimensionalDocIssueHitCollector (String luceneGroupField, StatsGroup statsGroup, IndexReader searcher, IssueFactory issueFactory, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, FieldManager fieldManager, ProjectManager projectManager)

Protected Methods

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

Parameters
docId the match we have found. This is an index into the overall directory reader.

protected void collectWithTerms (int docId, Collection<String> terms)

Implement this if you would like to do something with the hit we have found.

Parameters
docId the doc id of the hit. This is an index into the overall directory reader.
terms the terms for the fieldId for this document, pre-calculated so you may not need to call getDocument