com.atlassian.jira.issue.statistics.util
Class PrefixFieldableHitCollector
java.lang.Object
org.apache.lucene.search.Collector
com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector
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
PrefixFieldableHitCollector
public PrefixFieldableHitCollector(org.apache.lucene.search.IndexSearcher searcher,
String fieldId,
String prefix,
Set<String> results)
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-2012 Atlassian. All Rights Reserved.