public class TwoDimensionalTermHitCollector
extends org.apache.lucene.search.Collector
This HitCollector can be quite memory intensive, however the cache is stored with a weak reference, so it will be garbage collected.
Constructor and Description |
---|
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache,
LuceneFieldSorter aggregateField,
FieldManager fieldManager)
Update a statsMap, using the values from the
aggregateField . |
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap,
org.apache.lucene.index.IndexReader indexReader,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache) |
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap,
org.apache.lucene.index.IndexReader indexReader,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache,
LuceneFieldSorter aggregateField)
Update a statsMap, using the values from the
aggregateField . |
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap,
org.apache.lucene.index.IndexReader indexReader,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache,
LuceneFieldSorter aggregateField,
FieldManager fieldManager)
Deprecated.
since v5.1.8 use
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap, FieldVisibilityManager, ReaderCache, LuceneFieldSorter, FieldManager)
and if you are calling collect(int) make sure you call setNextReader(org.apache.lucene.index.IndexReader, int) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int i) |
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase) |
void |
setScorer(org.apache.lucene.search.Scorer scorer) |
public TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap, org.apache.lucene.index.IndexReader indexReader, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache)
public TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap, org.apache.lucene.index.IndexReader indexReader, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, LuceneFieldSorter aggregateField)
aggregateField
. Example, you can sum the votes.statsMap
- stats mapindexReader
- index readerfieldVisibilityManager
- used to determine if the stat fields are visiblereaderCache
- used to cache stats values at the reader levelaggregateField
- lucene field sorterpublic TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap, org.apache.lucene.index.IndexReader indexReader, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, LuceneFieldSorter aggregateField, FieldManager fieldManager)
TwoDimensionalTermHitCollector(TwoDimensionalStatsMap, FieldVisibilityManager, ReaderCache, LuceneFieldSorter, FieldManager)
and if you are calling collect(int)
make sure you call setNextReader(org.apache.lucene.index.IndexReader, int)
aggregateField
. Example, you can sum the votes.statsMap
- stats mapindexReader
- index readerfieldVisibilityManager
- used to determine if the stat fields are visiblereaderCache
- used to cache stats values at the reader levelaggregateField
- lucene field sorterpublic TwoDimensionalTermHitCollector(TwoDimensionalStatsMap statsMap, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, LuceneFieldSorter aggregateField, FieldManager fieldManager)
aggregateField
. Example, you can sum the votes.statsMap
- stats mapfieldVisibilityManager
- used to determine if the stat fields are visiblereaderCache
- used to cache stats values at the reader levelaggregateField
- lucene field sorterpublic void collect(int i)
collect
in class org.apache.lucene.search.Collector
public void setScorer(org.apache.lucene.search.Scorer scorer) throws IOException
setScorer
in class org.apache.lucene.search.Collector
IOException
public void setNextReader(org.apache.lucene.index.IndexReader reader, int docBase)
setNextReader
in class org.apache.lucene.search.Collector
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
Copyright © 2002-2016 Atlassian. All Rights Reserved.