Package dev.morphia

Class MapreduceResults<T>

  • Type Parameters:
    T - the type of the results
    All Implemented Interfaces:
    java.lang.Iterable<T>

    @Deprecated
    public class MapreduceResults<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>
    Deprecated.
    This feature will not be supported in 2.0
    Stores the results of a map reduce operation
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  MapreduceResults.Stats
      Deprecated.
      This class represents various statistics about a map reduce operation
    • Constructor Summary

      Constructors 
      Constructor Description
      MapreduceResults​(com.mongodb.MapReduceOutput output)
      Deprecated.
      Creates a results instance for the given output
    • Constructor Detail

      • MapreduceResults

        public MapreduceResults​(com.mongodb.MapReduceOutput output)
        Deprecated.
        Creates a results instance for the given output
        Parameters:
        output - the output of the operation
    • Method Detail

      • createQuery

        public Query<T> createQuery()
        Deprecated.
        Returns:
        the query to use against these results
      • getElapsedMillis

        public long getElapsedMillis()
        Deprecated.
        Returns:
        the duration of the operation
      • getError

        @Deprecated
        public java.lang.String getError()
        Deprecated.
        Returns:
        will always return null
      • getInlineResults

        public java.util.Iterator<T> getInlineResults()
        Deprecated.
        Creates an Iterator over the results of the operation. This method should probably not be called directly as it requires more context to use properly. Using iterator() will return the proper Iterator regardless of the type of map reduce operation performed.
        Returns:
        the Iterator
        See Also:
        MapreduceType
      • getOutputType

        public com.mongodb.MapReduceCommand.OutputType getOutputType()
        Deprecated.
        Returns:
        the type of the operation
        Since:
        1.3
      • setOutputType

        public void setOutputType​(com.mongodb.MapReduceCommand.OutputType outputType)
        Deprecated.
        Sets the output type for this mapreduce job
        Parameters:
        outputType - the output type
        Since:
        1.3
      • isOk

        @Deprecated
        public boolean isOk()
        Deprecated.
        Returns:
        will always return true
      • iterator

        public java.util.Iterator<T> iterator()
        Deprecated.
        Creates an Iterator over the results of the operation.
        Specified by:
        iterator in interface java.lang.Iterable<T>
        Returns:
        the Iterator
      • setInlineRequiredOptions

        public void setInlineRequiredOptions​(Datastore datastore,
                                             java.lang.Class<T> clazz,
                                             Mapper mapper,
                                             EntityCache cache)
        Deprecated.
        Sets the required options when the operation type was INLINE
        Parameters:
        datastore - the Datastore to use when fetching this reference
        clazz - the type of the results
        mapper - the mapper to use
        cache - the cache of entities seen so far
        See Also:
        MapReduceCommand.OutputType