public abstract class FieldDocumentHitCollector
extends org.apache.lucene.search.SimpleCollector
Collector
that retrieves only a subset of fields within the Document for each result.Constructor and Description |
---|
FieldDocumentHitCollector() |
Modifier and Type | Method and Description |
---|---|
abstract void |
collect(org.apache.lucene.document.Document d) |
void |
collect(int i) |
void |
doSetNextReader(org.apache.lucene.index.LeafReaderContext context) |
protected abstract Set<String> |
getFieldsToLoad()
This method should cache up the FieldSelector, such that overhead will be as small as possible when
this method is called from the
collect(int) method. |
boolean |
needsScores() |
public void collect(int i) throws IOException
collect
in interface org.apache.lucene.search.LeafCollector
collect
in class org.apache.lucene.search.SimpleCollector
IOException
public void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
doSetNextReader
in class org.apache.lucene.search.SimpleCollector
IOException
protected abstract Set<String> getFieldsToLoad()
collect(int)
method.Set
of fields to loadpublic abstract void collect(org.apache.lucene.document.Document d) throws IOException
IOException
public boolean needsScores()
Copyright © 2002-2019 Atlassian. All Rights Reserved.