com.atlassian.jira.issue.statistics.util
Class PrefixFieldableHitCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
          extended by com.atlassian.jira.issue.statistics.util.PrefixFieldableHitCollector

public class PrefixFieldableHitCollector
extends FieldableDocumentHitCollector

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

Since:
4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
searcher
 
Constructor Summary
PrefixFieldableHitCollector(org.apache.lucene.search.Searchable searcher, java.lang.String fieldId, java.lang.String prefix, java.util.Set<java.lang.String> results)
           
 
Method Summary
 void collect(org.apache.lucene.document.Document doc)
           
 boolean equals(java.lang.Object o)
           
protected  org.apache.lucene.document.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 FieldableDocumentHitCollector.collect(int,float) method.
 int hashCode()
           
 
Methods inherited from class com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
collect
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixFieldableHitCollector

public PrefixFieldableHitCollector(org.apache.lucene.search.Searchable searcher,
                                   java.lang.String fieldId,
                                   java.lang.String prefix,
                                   java.util.Set<java.lang.String> results)
Method Detail

getFieldSelector

protected org.apache.lucene.document.FieldSelector getFieldSelector()
Description copied from class: FieldableDocumentHitCollector
This method should cache up the FieldSelector, such that overhead will be as small as possible when this method is called from the FieldableDocumentHitCollector.collect(int,float) method.

Specified by:
getFieldSelector in class FieldableDocumentHitCollector
Returns:
a FieldSelector

collect

public void collect(org.apache.lucene.document.Document doc)
Specified by:
collect in class FieldableDocumentHitCollector

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2002-2010 Atlassian. All Rights Reserved.