public class

OneDimensionalDocHitCollector

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

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
OneDimensionalDocHitCollector(String luceneGroupField, Map result, IndexSearcher searcher)
Public Methods
void collect(Document d)
Protected Methods
FieldSelector getFieldSelector()
This method should cache up the FieldSelector, such that overhead will be as small as possible when this method is called from the collect(int) method.
[Expand]
Inherited Methods
From class com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
From class org.apache.lucene.search.Collector
From class java.lang.Object

Public Constructors

public OneDimensionalDocHitCollector (String luceneGroupField, Map result, IndexSearcher searcher)

Public Methods

public void collect (Document d)

Protected Methods

protected FieldSelector getFieldSelector ()

This method should cache up the FieldSelector, such that overhead will be as small as possible when this method is called from the collect(int) method.

Returns