title: mapReduce inline results with java mongodb driver 3.2
body: <p>How to have inline results from a mapReducet with the mongodb java driver 3.2?</p>
  
  <p>with driver version 2.x I was doing:</p>
  
  <pre><code>DBColleciont coll = client.getDB(dbName).getCollection(collName);
  coll.mapReduce(map, reduce, null, OutputType.INLINE, query);
  </code></pre>
  
  <p>the new 3.x driver has two <em>mapReduce()</em> methods returning <em>MapReduceIterable</em> which misses a method to specify the INLINE output mode.</p>
  
  <pre><code>MongoCollection&lt;Documetn&gt; coll = client.getDatabase(dbName).getCollection(collName)
  coll
      .mapReduce(map, reduce).
      .filter(query);
  </code></pre>