public class DocsStreamer extends Object implements Iterator<SolrDocument>
| Modifier and Type | Field and Description |
|---|---|
static Set<Class> |
KNOWN_TYPES |
| Constructor and Description |
|---|
DocsStreamer(ResultContext rctx) |
| Modifier and Type | Method and Description |
|---|---|
static SolrDocument |
convertLuceneDocToSolrDoc(Document doc,
IndexSchema schema)
Deprecated.
use the 3 arg version for better performance
|
static SolrDocument |
convertLuceneDocToSolrDoc(Document doc,
IndexSchema schema,
ReturnFields fields)
Converts the specified
Document into a SolrDocument. |
int |
currentIndex() |
static Object |
getValue(SchemaField sf,
IndexableField f) |
boolean |
hasNext() |
SolrDocument |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DocsStreamer(ResultContext rctx)
public int currentIndex()
public boolean hasNext()
hasNext in interface Iterator<SolrDocument>public SolrDocument next()
next in interface Iterator<SolrDocument>@Deprecated public static SolrDocument convertLuceneDocToSolrDoc(Document doc, IndexSchema schema)
public static SolrDocument convertLuceneDocToSolrDoc(Document doc, IndexSchema schema, ReturnFields fields)
Document into a SolrDocument.
The use of ReturnFields can be important even when it was already used to retrieve the
Document from SolrDocumentFetcher because the Document may have been cached with
more fields then are desired.
doc - Document to be converted, must not be nullschema - IndexSchema containing the field/fieldType details for the index
the Document came from, must not be null.fields - ReturnFields instance that can be use to limit the set of fields
that will be converted, must not be nullpublic void remove()
remove in interface Iterator<SolrDocument>public static Object getValue(SchemaField sf, IndexableField f)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.