@Internal public class OneDimensionalTermHitCollector extends AbstractOneDimensionalHitCollector
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 |
---|
OneDimensionalTermHitCollector(String fieldId,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache,
FieldManager fieldManager,
ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectIrrelevant(int docId)
Implement this if you would like to do something when the hit collector has encountered a docId that contains an
irrelevant data match
|
protected void |
collectWithTerms(int docId,
Collection<String> terms)
Implement this if you would like to do something with the hit we have found.
|
Map<String,Integer> |
getResult() |
acceptsDocsOutOfOrder, collect, getHitCount, getIrrelevantCount, setNextReader, setScorer
public OneDimensionalTermHitCollector(String fieldId, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, FieldManager fieldManager, ProjectManager projectManager)
protected void collectIrrelevant(int docId)
AbstractOneDimensionalHitCollector
collectIrrelevant
in class AbstractOneDimensionalHitCollector
docId
- the match we have found. This is an index into the overall directory reader.protected void collectWithTerms(int docId, Collection<String> terms)
AbstractOneDimensionalHitCollector
collectWithTerms
in class AbstractOneDimensionalHitCollector
docId
- the doc id of the hit. This is an index into the overall directory reader.terms
- the terms for the fieldId for this document, pre-calculated so you may not need to call getDocumentCopyright © 2002-2015 Atlassian. All Rights Reserved.