Class FakeDocIterator
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.sim.FakeDocIterator
-
- All Implemented Interfaces:
Iterator<SolrInputDocument>
public class FakeDocIterator extends Object implements Iterator<SolrInputDocument>
Lightweight generator of fake documents NOTE: this iterator only ever returns the same document N times, which works ok for our "bulk index update" simulation. Obviously don't use this for real indexing.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
SolrInputDocument
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
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<SolrInputDocument>
-
next
public SolrInputDocument next()
- Specified by:
next
in interfaceIterator<SolrInputDocument>
-
-