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

java.lang.Object
  extended by org.apache.lucene.search.Collector
      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.IndexSearcher searcher, String fieldId, String prefix, Set<String> results)
           
 
Method Summary
 void collect(org.apache.lucene.document.Document doc)
           
 boolean equals(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) method.
 int hashCode()
           
 
Methods inherited from class com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
acceptsDocsOutOfOrder, collect, setNextReader, setScorer
 
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.IndexSearcher searcher,
                                   String fieldId,
                                   String prefix,
                                   Set<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) 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(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.