Class MorphiaKeyIterator<T>

  • Type Parameters:
    T - the entity type
    All Implemented Interfaces:
    java.lang.Iterable<Key<T>>, java.util.Iterator<Key<T>>

    @Deprecated
    public class MorphiaKeyIterator<T>
    extends MorphiaIterator<T,​Key<T>>
    Deprecated.
    this is being replaced by MongoCursor
    Defines an Iterator across the Key values for a given type.
    Author:
    Scott Hernandez
    • 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 reference
        cursor - the cursor to use
        mapper - the Mapper to use
        clazz - the original type being iterated
        collection - the mongodb collection