Packages

o

org.mongodb.scala.model

MapReduceAction

object MapReduceAction

The map reduce to collection actions.

These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.

Annotations
@deprecated
Deprecated

(Since version 4.4.0) Superseded by aggregate

Since

1.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapReduceAction
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val MERGE: com.mongodb.client.model.MapReduceAction

    Merge the new result with the existing result if the output collection already exists.

    Merge the new result with the existing result if the output collection already exists. If an existing document has the same key as the new result, overwrite that existing document.

  2. val REDUCE: com.mongodb.client.model.MapReduceAction

    Merge the new result with the existing result if the output collection already exists.

    Merge the new result with the existing result if the output collection already exists. If an existing document has the same key as the new result, apply the reduce function to both the new and the existing documents and overwrite the existing document with the result.

  3. val REPLACE: com.mongodb.client.model.MapReduceAction

    Replace the contents of the collectionName if the collection with the collectionName exists.