Package org.ametys.cms.search.solr
Class SolrResponseIdIterable.DocListIdIterator
- java.lang.Object
-
- org.ametys.cms.search.solr.SolrResponseIdIterable.DocListIdIterator
-
- Enclosing class:
- SolrResponseIdIterable
protected class SolrResponseIdIterable.DocListIdIterator extends Object implements Iterator<String>
Iterator over the IDs of the objects in a SolrDocumentList.
-
-
Field Summary
Fields Modifier and Type Field Description private Iterator<org.apache.solr.common.SolrDocument>
_docIterator
-
Constructor Summary
Constructors Constructor Description DocListIdIterator(org.apache.solr.common.SolrDocumentList docList)
Build a DocListIdIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
String
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
_docIterator
private Iterator<org.apache.solr.common.SolrDocument> _docIterator
-
-
Constructor Detail
-
DocListIdIterator
public DocListIdIterator(org.apache.solr.common.SolrDocumentList docList)
Build a DocListIdIterator.- Parameters:
docList
- the solr socument list.
-
-