Class MapReduceStatistics

java.lang.Object
com.mongodb.operation.MapReduceStatistics

@Deprecated public class MapReduceStatistics extends Object
Deprecated.
Common statistics returned by running all types of map-reduce operations.
Since:
3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapReduceStatistics(int inputCount, int outputCount, int emitCount, int duration)
    Deprecated.
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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 operation
    int
    Deprecated.
    Get the number of documents generated as a result of this map reduce

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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