Method: Mongoid::Contextual::MapReduce#input

Defined in:
lib/mongoid/contextual/map_reduce.rb

#inputInteger

Get the number of documents that were input into the map/reduce.

Examples:

Get the count of input documents.

map_reduce.input

Returns:

  • (Integer)

    The number of input documents.

Since:

  • 3.0.0



96
97
98
# File 'lib/mongoid/contextual/map_reduce.rb', line 96

def input
  counts["input"]
end