Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateDiff
Packages that use DateOperators.DateDiff
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateDiff in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return DateOperators.DateDiffModifier and TypeMethodDescriptionCreates newAggregationExpressionthat calculates the difference (in units) to the date given value.DateOperators.DateOperatorFactory.diff(Object value, DateOperators.TemporalUnit unit) Creates newAggregationExpressionthat calculates the difference (in units) to the date given value.static DateOperators.DateDiffAdd the number of units to astart date.static DateOperators.DateDiffDateOperators.DateDiff.diffValueOf(String fieldReference, String unit) Add the number of units from a field to astart date.static DateOperators.DateDiffDateOperators.DateDiff.diffValueOf(AggregationExpression expression, String unit) Add the number of units of the result of the givenexpressionto astart date.DateOperators.DateOperatorFactory.diffValueOf(String fieldReference, String unit) Creates newAggregationExpressionthat calculates the difference (in units) to the date stored at the given field.DateOperators.DateOperatorFactory.diffValueOf(String fieldReference, DateOperators.TemporalUnit unit) Creates newAggregationExpressionthat calculates the difference (in units) to the date stored at the given field.DateOperators.DateOperatorFactory.diffValueOf(AggregationExpression expression, String unit) Creates newAggregationExpressionthat calculates the difference (in units) to the date computed by the givenexpression.DateOperators.DateOperatorFactory.diffValueOf(AggregationExpression expression, DateOperators.TemporalUnit unit) Creates newAggregationExpressionthat calculates the difference (in units) to the date computed by the givenexpression.DateOperators.DateDiff.startOfWeek(Object day) Set the start day of the week if the unit if measure is set to week.Define the start date, in UTC, for the addition operation.Define the start date, in UTC, for the addition operation.DateOperators.DateDiff.toDateOf(AggregationExpression expression) Define the start date, in UTC, for the addition operation.DateOperators.DateDiff.withTimezone(DateOperators.Timezone timezone) Optionally set theDateOperators.Timezoneto use.