Examples of UnwindAggregation


Examples of org.mongojack.aggregation.UnwindAggregation

        mock.simpleList.add("qux");

        coll.insert(mock);

        AggregationBuilder<MockObjectAggregationResult> builder = new AggregationBuilder<MockObjectAggregationResult>();
        builder.unwind(new UnwindAggregation("simpleList"))
                .group(new GroupAggregation("string").withSum("integer", "integer"));

        AggregationResult<MockObjectAggregationResult> aggregationResult = coll.aggregate(builder.build(MockObjectAggregationResult.class));

        Assert.assertEquals(1, aggregationResult.results().size());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.