List of usage examples for com.mongodb MapReduceOutput drop
public void drop()
From source file:org.iternine.jeppetto.dao.mongodb.projections.MapReduceCommand.java
License:Apache License
@Override public final Object singleResult(DBCollection dbCollection) { MapReduceOutput output = dbCollection.mapReduce(createMapFunction(), createReduceFunction(), null, query); DBCursor cursor = output.results();/*from ww w .j a v a 2 s.co m*/ try { return transformToValue(cursor); } finally { output.drop(); } }