Package org.springframework.data.mongodb.core.aggregation

Examples of org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext


  public <O> AggregationResults<O> aggregate(TypedAggregation<?> aggregation, String inputCollectionName,
      Class<O> outputType) {

    Assert.notNull(aggregation, "Aggregation pipeline must not be null!");

    AggregationOperationContext context = new TypeBasedAggregationOperationContext(aggregation.getInputType(),
        mappingContext, queryMapper);
    return aggregate(aggregation, inputCollectionName, outputType, context);
  }
View Full Code Here


  @Override
  public <O> AggregationResults<O> aggregate(Aggregation aggregation, Class<?> inputType, Class<O> outputType) {

    return aggregate(aggregation, determineCollectionName(inputType), outputType,
        new TypeBasedAggregationOperationContext(inputType, mappingContext, queryMapper));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext

Copyright © 2018 www.massapicom. 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.