Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateDiff
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateDiff in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionCreates newAggregationExpression
that calculates the difference (in units) to the date given value.DateOperators.DateOperatorFactory.diff
(Object value, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that calculates the difference (in units) to the date given value.static DateOperators.DateDiff
Add the number of units to astart date
.static DateOperators.DateDiff
DateOperators.DateDiff.diffValueOf
(String fieldReference, String unit) Add the number of units from a field to astart date
.static DateOperators.DateDiff
DateOperators.DateDiff.diffValueOf
(AggregationExpression expression, String unit) Add the number of units of the result of the givenexpression
to astart date
.DateOperators.DateOperatorFactory.diffValueOf
(String fieldReference, String unit) Creates newAggregationExpression
that calculates the difference (in units) to the date stored at the given field.DateOperators.DateOperatorFactory.diffValueOf
(String fieldReference, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that calculates the difference (in units) to the date stored at the given field.DateOperators.DateOperatorFactory.diffValueOf
(AggregationExpression expression, String unit) Creates newAggregationExpression
that calculates the difference (in units) to the date computed by the givenexpression
.DateOperators.DateOperatorFactory.diffValueOf
(AggregationExpression expression, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that 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.Timezone
to use.