Package com.mongodb.operation
Class MapReduceStatistics
java.lang.Object
com.mongodb.operation.MapReduceStatistics
Deprecated.
Common statistics returned by running all types of map-reduce operations.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionMapReduceStatistics
(int inputCount, int outputCount, int emitCount, int duration) Deprecated.Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Get the amount of time it took to run the map-reduce.int
Deprecated.Get the number of messages emitted from the provided map function.int
Deprecated.Get the number of documents that were input into the map reduce operationint
Deprecated.Get the number of documents generated as a result of this map reduce
-
Constructor Details
-
MapReduceStatistics
public MapReduceStatistics(int inputCount, int outputCount, int emitCount, int duration) Deprecated.Construct a new instance.- Parameters:
inputCount
- the input count.outputCount
- the output count.emitCount
- the emit count.duration
- the duration.
-
-
Method Details
-
getInputCount
public int getInputCount()Deprecated.Get the number of documents that were input into the map reduce operation- Returns:
- the number of documents that read while processing this map reduce
-
getOutputCount
public int getOutputCount()Deprecated.Get the number of documents generated as a result of this map reduce- Returns:
- the number of documents output by the map reduce
-
getEmitCount
public int getEmitCount()Deprecated.Get the number of messages emitted from the provided map function.- Returns:
- the number of items emitted from the map function
-
getDuration
public int getDuration()Deprecated.Get the amount of time it took to run the map-reduce.- Returns:
- the duration in milliseconds
-