Package

com.mongodb.casbah

map_reduce

Permalink

package map_reduce

Content Hierarchy Learn more about scaladoc diagrams
Visibility
  1. Public
  2. All

Type Members

  1. class MapReduceCollectionBasedResult extends MapReduceResult

    Permalink
  2. case class MapReduceCommand(input: String = "", map: Imports.JSFunction = "", reduce: Imports.JSFunction = "", output: MapReduceOutputTarget = MapReduceInlineOutput, query: Option[Imports.DBObject] = None, sort: Option[Imports.DBObject] = None, limit: Option[Int] = None, finalizeFunction: Option[Imports.JSFunction] = None, jsScope: Option[Imports.DBObject] = None, verbose: Boolean = false, maxTime: Option[Duration] = None) extends Product with Serializable

    Permalink

    Case class for invoking MongoDB mapReduces.

    Case class for invoking MongoDB mapReduces.

    This wrapper class is used in it's place, and passed directly to a db.runCommand call.

    input

    the collection name to run the map reduce on

    map

    the map function (JSFunction is just a type alias for String)

    reduce

    the reduce function (JSFunction is just a type alias for String)

    output

    (optional) the location of the result of the map-reduce operation, defaults to inline. You can output to a collection, output to a collection with an action, or output inline.

    query

    (optional) the selection criteria for the documents input to the map function.

    sort

    (optional) the input documents, useful for optimization.

    limit

    (optional) the maximum number of documents to return from the collection before map reduce

    finalizeFunction

    (optional) the finalize function (JSFunction is just a type alias for String)

    jsScope

    (optional) global variables that are accessible in the map, reduce and finalize functions

    verbose

    (optional) include the timing information in the result information

    maxTime

    (optional) the maximum duration that the server will allow this operation to execute before killing it

    See also

    The MongoDB Map/Reduce Documentation

  3. class MapReduceError extends MapReduceResult

    Permalink
  4. class MapReduceException extends Imports.MongoException

    Permalink
  5. class MapReduceInlineResult extends MapReduceCollectionBasedResult

    Permalink
  6. case class MapReduceMergeOutput(collection: String) extends MapReduceOutputTarget with Product with Serializable

    Permalink
  7. trait MapReduceOutputTarget extends AnyRef

    Permalink
  8. case class MapReduceReduceOutput(collection: String) extends MapReduceOutputTarget with Product with Serializable

    Permalink
  9. trait MapReduceResult extends Iterator[Imports.DBObject] with Logging

    Permalink

    Wrapper for MongoDB MapReduceResults, implementing iterator to allow direct iterator over the result set.

  10. case class MapReduceStandardOutput(collection: String) extends MapReduceOutputTarget with Product with Serializable

    Permalink

Value Members

  1. object MapReduceInlineOutput extends MapReduceOutputTarget with Product with Serializable

    Permalink
  2. object MapReduceResult extends Logging

    Permalink

Ungrouped