T
- the generic type of the object accepted by the consumer. This could be a key-value map of the fields or
a ScannedDocument
instancepublic abstract class AbstractDocumentCollector<T>
extends org.apache.lucene.search.Collector
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
requestedFields |
Constructor and Description |
---|
AbstractDocumentCollector(org.apache.lucene.search.IndexSearcher indexSearcher,
Set<String> requestedFields,
Consumer<T> consumer) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDocsOutOfOrder() |
void |
collect(int docID) |
long |
getCount() |
void |
setIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher) |
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext readerContext) |
abstract T |
toConsumable(org.apache.lucene.document.Document document) |
public void setNextReader(org.apache.lucene.index.AtomicReaderContext readerContext)
setNextReader
in class org.apache.lucene.search.Collector
public boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
public void collect(int docID) throws IOException
collect
in class org.apache.lucene.search.Collector
IOException
public abstract T toConsumable(org.apache.lucene.document.Document document)
public long getCount()
public void setIndexSearcher(org.apache.lucene.search.IndexSearcher indexSearcher)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences