public class

PrefixFieldableHitCollector

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

Class Overview

A fieldable hit collector to retrieve all the terms matching a certain prefix provided.

Summary

Public Constructors
PrefixFieldableHitCollector(IndexSearcher searcher, String fieldId, String prefix, Set<String> results)
Public Methods
void collect(Document doc)
boolean equals(Object o)
int hashCode()
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 PrefixFieldableHitCollector (IndexSearcher searcher, String fieldId, String prefix, Set<String> results)

Public Methods

public void collect (Document doc)

public boolean equals (Object o)

public int hashCode ()

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