O
- the type of elements returned by this iteratorabstract class AbstractResponseIterator<O> extends Object implements SearchResultsIterator<O>
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysObjectResolver |
private long |
_errors |
private Iterator<SolrDocument> |
_it |
private Logger |
_logger |
private O |
_nextObject |
private int |
_position |
private long |
_size |
Constructor and Description |
---|
AbstractResponseIterator(Iterator<SolrDocument> it,
long size,
AmetysObjectResolver resolver,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
protected abstract O |
_setNextObject(SolrDocument document,
String id) |
long |
getPosition() |
long |
getSize() |
boolean |
hasNext() |
O |
next() |
void |
skip(long skipNum)
Skip a number of elements in the iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
protected AmetysObjectResolver _ametysObjectResolver
private Iterator<SolrDocument> _it
private O _nextObject
private int _position
private long _size
private long _errors
public AbstractResponseIterator(Iterator<SolrDocument> it, long size, AmetysObjectResolver resolver, Logger logger)
protected abstract O _setNextObject(SolrDocument document, String id)
public long getPosition()
public long getSize()
public void skip(long skipNum)
SearchResultsIterator
skip
in interface SearchResultsIterator<O>
skipNum
- the non-negative number of elements to skip