A
- the actual type of AmetysObject
s.public class SolrResponseIterable<A extends AmetysObject> extends Object implements SearchResultsIterable<SearchResult<A>>
AmetysObjectIterable
backed by a solr QueryResponse
.Modifier and Type | Class and Description |
---|---|
(package private) class |
SolrResponseIterable.SolrResponseIterator<AO extends AmetysObject> |
Modifier and Type | Field and Description |
---|---|
(package private) static Logger |
__LOGGER |
private SolrDocumentList |
_docList |
private SolrResponseIterable.SolrResponseIterator |
_lastIterator |
(package private) AmetysObjectResolver |
_resolver |
Constructor and Description |
---|
SolrResponseIterable(SolrDocumentList docList,
AmetysObjectResolver resolver)
Build a SolrResponseIterable.
|
Modifier and Type | Method and Description |
---|---|
long |
getSize()
Returns the number of elements in this iterable.
|
SearchResultsIterator<SearchResult<A>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
AmetysObjectResolver _resolver
private SolrDocumentList _docList
private SolrResponseIterable.SolrResponseIterator _lastIterator
public SolrResponseIterable(SolrDocumentList docList, AmetysObjectResolver resolver)
docList
- The solr response document list.resolver
- The Ametys object resolver.public SearchResultsIterator<SearchResult<A>> iterator()
iterator
in interface Iterable<SearchResult<A extends AmetysObject>>
iterator
in interface SearchResultsIterable<SearchResult<A extends AmetysObject>>
public long getSize()
SearchResultsIterable
getSize
in interface SearchResultsIterable<SearchResult<A extends AmetysObject>>