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

java.lang.Object
  extended byorg.apache.lucene.search.HitCollector
      extended bycom.atlassian.jira.issue.statistics.util.TwoDimensionalTermHitCollector

public class TwoDimensionalTermHitCollector
extends org.apache.lucene.search.HitCollector

A HitCollector that creates a doc -> term mapping. This is useful for collecting documents where there are a limited number of terms. The caching also ensures that if multiple searches sort on the same terms, the doc -> term mapping is maintained.

This HitCollector can be quite memory intensive, however the cache is stored with a weak reference, so it will be garbage collected.


Constructor Summary
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap, org.apache.lucene.index.IndexReader indexReader)
           
 
Method Summary
 void collect(int i, float v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDimensionalTermHitCollector

public TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap,
                                      org.apache.lucene.index.IndexReader indexReader)
Method Detail

collect

public void collect(int i,
                    float v)


Copyright © 2002-2006 Atlassian. All Rights Reserved.