src/main/java/org/mongojack/JacksonMongoCollection.java
/**
     * Performs an aggregation pipeline against this collection.
     * 
     * @param pipeline - This should be a List of Bson Documents in the Mongo aggregation language.
     * @param resultClass - The class for the type that will be returned
     * @return an AggregateIterable with the result objects mapped to the type specified by the resultClass.
     * @throws MongoException
     *             If an error occurred
     * @see <a
     *      href="http://www.mongodb.org/display/DOCS/Aggregation">http://www.mongodb.org/display/DOCS/Aggregation</a>
     * @since 2.1.0
     */
Performs an aggregation pipeline against this collection.

@param pipeline - This should be a List of Bson Documents in the Mongo aggregation language.
@param resultClass - The class for the type that will be returned
@return an AggregateIterable with the result objects mapped to the type specified by the resultClass.
Performs an aggregation pipeline against this collection . @param pipeline - This should be a List of Bson Documents in the Mongo aggregation language . @param resultClass - The class for the type that will be returned @return an AggregateIterable with the result objects mapped to the type specified by the resultClass .
public <ResultType> AggregateIterable<ResultType> aggregate(List<? extends Bson> pipeline, Class<ResultType> resultClass)
            throws MongoException {
        return mongoCollection.aggregate(pipeline, resultClass);
    }
public < ResultType > AggregateIterable < ResultType > aggregate ( List < ? extends Bson > pipeline , Class < ResultType > resultClass ) throws MongoException { return mongoCollection . aggregate ( pipeline , resultClass ) ; }
Performs an aggregation pipeline against this collection.
Performs an aggregation pipeline against this collection .