Package dev.morphia.query
Class MorphiaKeyIterator<T>
- java.lang.Object
-
- dev.morphia.query.MorphiaIterator<T,Key<T>>
-
- dev.morphia.query.MorphiaKeyIterator<T>
-
- Type Parameters:
T
- the entity type
@Deprecated public class MorphiaKeyIterator<T> extends MorphiaIterator<T,Key<T>>
Deprecated.this is being replaced byMongoCursor
Defines an Iterator across the Key values for a given type.- Author:
- Scott Hernandez
-
-
Constructor Summary
Constructors Constructor Description MorphiaKeyIterator(Datastore datastore, com.mongodb.DBCursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)
Deprecated.Create
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Key<T>
convertItem(com.mongodb.DBObject dbObj)
Deprecated.-
Methods inherited from class dev.morphia.query.MorphiaIterator
close, getClazz, getCollection, getCursor, getDriverTime, getMapper, getMapperTime, getNext, hasNext, iterator, next, remove
-
-
-
-
Constructor Detail
-
MorphiaKeyIterator
public MorphiaKeyIterator(Datastore datastore, com.mongodb.DBCursor cursor, Mapper mapper, java.lang.Class<T> clazz, java.lang.String collection)
Deprecated.Create- Parameters:
datastore
- the Datastore to use when fetching this referencecursor
- the cursor to usemapper
- the Mapper to useclazz
- the original type being iteratedcollection
- the mongodb collection
-
-
Method Detail
-
convertItem
protected Key<T> convertItem(com.mongodb.DBObject dbObj)
Deprecated.- Overrides:
convertItem
in classMorphiaIterator<T,Key<T>>
-
-