Author: buildbot Date: Mon Feb 9 10:18:25 2015 New Revision: 939523 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/mongodb.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/mongodb.html ============================================================================== --- websites/production/camel/content/mongodb.html (original) +++ websites/production/camel/content/mongodb.html Mon Feb 9 10:18:25 2015 @@ -201,7 +201,7 @@ Object result = template.requestBodyAndH DBObject conditionField = new BasicDBObject("conditionField", true); Object result = template.requestBody("direct:remove", conditionField); ]]></script> -</div></div><p>A header with key <code>CamelMongoDbRecordsAffected</code> is returned (<code>MongoDbConstants.RECORDS_AFFECTED</code> constant) with type <code>int</code>, containing the number of records deleted (copied from <code>WriteResult.getN()</code>).</p><h3 id="MongoDB-Otheroperations">Other operations</h3><h4 id="MongoDB-aggregate"><span>aggregate</span></h4><h4 id="MongoDB-AvailableasofCamel2.14"><span style="line-height: 1.5;"><strong>Available as of Camel 2.14</strong></span></h4><p><span style="line-height: 1.5;">Perform a aggregation with the given pipeline contained in the body. <strong>Aggregations could be long and heavy operations. Use with care.</strong></span></p><p><span style="line-height: 1.5;"> </span></p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><p>A header with key <code>CamelMongoDbRecordsAffected</code> is returned (<code>MongoDbConstants.RECORDS_AFFECTED</code> constant) with type <code>int</code>, containing the number of records deleted (copied from <code>WriteResult.getN()</code>).</p><h3 id="MongoDB-Otheroperations">Other operations</h3><h4 id="MongoDB-aggregate"><span>aggregate</span></h4><p><span style="line-height: 1.5;"><strong>Available as of Camel 2.14</strong></span></p><p><span style="line-height: 1.5;">Perform a aggregation with the given pipeline contained in the body. <strong>Aggregations could be long and heavy operations. Use with care.</strong></span></p><p><span style="line-height: 1.5;"> </span></p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[// route: from("direct:aggregate").to("mongodb:myDb?database=science&collection=notableScientists&operation=aggregate"); from("direct:aggregate") .setBody().constant("[{ $match : {$or : [{\"scientist\" : \"Darwin\"},{\"scientist\" : \"Einstein\"}]}},{ $group: { _id: \"$scientist\", count: { $sum: 1 }} } ]")