Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-500

m/r out:db and out:sharded options

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      At this moment we can specify only MapReduceCommand.OutputType and collection name.

      public MapReduceCommand(DBCollection inputCollection,
                              String map,
                              String reduce,
                              String outputCollection,
                              MapReduceCommand.OutputType type,
                              DBObject query)
                       throws MongoException

      No way for this:

      Additional options within out objects are:

      • "db" - the db name to output to.

         out : \{replace : "collectionName", db : "otherDB"\}

        { sharded : true} - MongoDB 1.9+ If true and combined with an output mode that writes to a collection, the output collection will be sharded using the _id field. See details in the sharding section.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            uladzimir_mihura@epam.com Uladzimir Mihura
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: