T - the original type being iteratedV - the type of the values returnedpublic class MorphiaIterator<T,V> extends Object implements Iterable<V>, Iterator<V>
MorphiaKeyIterator| Constructor and Description |
|---|
MorphiaIterator(Datastore datastore,
Iterator<DBObject> it,
Mapper mapper,
Class<T> clazz,
String collection,
EntityCache cache)
Creates a MorphiaIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying cursor.
|
protected V |
convertItem(DBObject dbObj) |
Class<T> |
getClazz() |
String |
getCollection() |
DBCursor |
getCursor() |
long |
getDriverTime() |
Mapper |
getMapper() |
long |
getMapperTime() |
protected DBObject |
getNext() |
boolean |
hasNext() |
Iterator<V> |
iterator() |
V |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingpublic MorphiaIterator(Datastore datastore, Iterator<DBObject> it, Mapper mapper, Class<T> clazz, String collection, EntityCache cache)
datastore - the Datastore to use when fetching this referenceit - the Iterator to usemapper - the Mapper to useclazz - the original type being iteratedcollection - the mongodb collectioncache - the EntityCachepublic void close()
public String getCollection()
public DBCursor getCursor()
public long getDriverTime()
public Mapper getMapper()
public long getMapperTime()
protected DBObject getNext()