Uses of Interface
org.springframework.data.mongodb.core.aggregation.DateOperators.TemporalUnit
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.TemporalUnit in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionstatic DateOperators.TemporalUnit
DateOperators.TemporalUnit.from
(ChronoUnit chronoUnit) Converts the given chrono unit into aDateOperators.TemporalUnit
.static DateOperators.TemporalUnit
Converts the given time unit into aDateOperators.TemporalUnit
.Modifier and TypeMethodDescriptionDateOperators.DateOperatorFactory.add
(Object value, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that adds the given value (in units).DateOperators.DateOperatorFactory.addValueOf
(String fieldReference, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that adds the value stored at the given field (in units).DateOperators.DateOperatorFactory.addValueOf
(AggregationExpression expression, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that adds the value of the givenexpression
(in units).DateOperators.DateOperatorFactory.diff
(Object value, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that calculates the difference (in units) to the date given value.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, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that calculates the difference (in units) to the date computed by the givenexpression
.DateOperators.DateOperatorFactory.subtract
(Object value, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that subtracts the given value (in units).DateOperators.DateOperatorFactory.subtractValueOf
(String fieldReference, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that subtracts the value stored at the given field (in units).DateOperators.DateOperatorFactory.subtractValueOf
(AggregationExpression expression, DateOperators.TemporalUnit unit) Creates newAggregationExpression
that subtracts the value of the givenexpression
(in units).DateOperators.DateOperatorFactory.truncate
(DateOperators.TemporalUnit unit) Creates newAggregationExpression
that truncates a date to the given unit.