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

m/r out:db and out:sharded options

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: