Package dev.morphia
Class MapreduceResults<T>
- java.lang.Object
-
- dev.morphia.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.0Stores 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
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Query<T>
createQuery()
Deprecated.MapreduceResults.Stats
getCounts()
Deprecated.long
getElapsedMillis()
Deprecated.java.lang.String
getError()
Deprecated.java.util.Iterator<T>
getInlineResults()
Deprecated.Creates an Iterator over the results of the operation.com.mongodb.MapReduceCommand.OutputType
getOutputType()
Deprecated.MapreduceType
getType()
Deprecated.usegetOutputType()
insteadboolean
isOk()
Deprecated.java.util.Iterator<T>
iterator()
Deprecated.Creates an Iterator over the results of the operation.void
setInlineRequiredOptions(Datastore datastore, java.lang.Class<T> clazz, Mapper mapper, EntityCache cache)
Deprecated.Sets the required options when the operation type was INLINEvoid
setOutputType(com.mongodb.MapReduceCommand.OutputType outputType)
Deprecated.Sets the output type for this mapreduce job
-
-
-
Method Detail
-
createQuery
public Query<T> createQuery()
Deprecated.- Returns:
- the query to use against these results
-
getCounts
public MapreduceResults.Stats getCounts()
Deprecated.- Returns:
- the Stats for the operation
-
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. Usingiterator()
will return the proper Iterator regardless of the type of map reduce operation performed.- Returns:
- the Iterator
- See Also:
MapreduceType
-
getType
@Deprecated public MapreduceType getType()
Deprecated.usegetOutputType()
instead- Returns:
- the type of the operation
-
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 interfacejava.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 referenceclazz
- the type of the resultsmapper
- the mapper to usecache
- the cache of entities seen so far- See Also:
MapReduceCommand.OutputType
-
-