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

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

public abstract class FieldableDocumentHitCollector
extends org.apache.lucene.search.HitCollector


Field Summary
protected  org.apache.lucene.search.Searchable searcher
           
 
Constructor Summary
protected FieldableDocumentHitCollector(org.apache.lucene.search.Searchable searcher)
           
 
Method Summary
abstract  void collect(org.apache.lucene.document.Document d)
           
 void collect(int i, float v)
           
protected abstract  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 collect(int,float) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searcher

protected final org.apache.lucene.search.Searchable searcher
Constructor Detail

FieldableDocumentHitCollector

protected FieldableDocumentHitCollector(org.apache.lucene.search.Searchable searcher)
Method Detail

collect

public void collect(int i,
                    float v)
Specified by:
collect in class org.apache.lucene.search.HitCollector

getFieldSelector

protected abstract 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 collect(int,float) method.

Returns:
a FieldSelector

collect

public abstract void collect(org.apache.lucene.document.Document d)


Copyright © 2002-2010 Atlassian. All Rights Reserved.