public class DocsStreamer extends Object implements Iterator<SolrDocument>
Constructor and Description |
---|
DocsStreamer(DocList docList,
org.apache.lucene.search.Query query,
SolrQueryRequest req,
ReturnFields returnFields) |
Modifier and Type | Method and Description |
---|---|
int |
currentIndex() |
static SolrDocument |
getDoc(org.apache.lucene.document.Document doc,
IndexSchema schema) |
static Object |
getValue(SchemaField sf,
org.apache.lucene.index.IndexableField f) |
boolean |
hasNext() |
boolean |
hasScores() |
SolrDocument |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DocsStreamer(DocList docList, org.apache.lucene.search.Query query, SolrQueryRequest req, ReturnFields returnFields)
public boolean hasScores()
public int currentIndex()
public boolean hasNext()
hasNext
in interface Iterator<SolrDocument>
public SolrDocument next()
next
in interface Iterator<SolrDocument>
public static SolrDocument getDoc(org.apache.lucene.document.Document doc, IndexSchema schema)
public void remove()
remove
in interface Iterator<SolrDocument>
public static Object getValue(SchemaField sf, org.apache.lucene.index.IndexableField f)
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.