Class AccumulatorOperators
java.lang.Object
org.springframework.data.mongodb.core.aggregation.AccumulatorOperators
Gateway to accumulator aggregation operations.
- Since:
- 1.10
- Author:
- Christoph Strobl, Julia Lee
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classAggregationExpressionfor$avg.static classAggregationExpressionfor$covariancePop.static classAggregationExpressionfor$covarianceSamp.static classAccumulatorOperators.ExpMovingAvgcalculates the exponential moving average of numeric values.static interfaceBuilder forAccumulatorOperators.ExpMovingAvg.static classAggregationExpressionfor$max.static classAggregationExpressionfor$median.static classAggregationExpressionfor$min.static classAggregationExpressionfor$percentile.static classAggregationExpressionfor$stdDevPop.static classAggregationExpressionfor$stdDevSamp.static classAggregationExpressionfor$sum. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTake the numeric value referenced by given fieldReference.valueOf(AggregationExpression expression) Take the numeric value referenced resulting from givenAggregationExpression.
-
Constructor Details
-
AccumulatorOperators
public AccumulatorOperators()
-
-
Method Details
-
valueOf
Take the numeric value referenced by given fieldReference.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
AccumulatorOperators.AccumulatorOperatorFactory.
-
valueOf
public static AccumulatorOperators.AccumulatorOperatorFactory valueOf(AggregationExpression expression) Take the numeric value referenced resulting from givenAggregationExpression.- Parameters:
expression- must not be null.- Returns:
- new instance of
AccumulatorOperators.AccumulatorOperatorFactory.
-