public class TwoDimensionalTermHitCollector
extends org.apache.lucene.search.SimpleCollector
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 . |
Modifier and Type | Method and Description |
---|---|
void |
collect(int i) |
void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
boolean |
needsScores() |
public 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 interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
public boolean needsScores()
Copyright © 2002-2019 Atlassian. All Rights Reserved.