Uses of Class
org.springframework.data.mongodb.core.aggregation.DateOperators.DateTrunc
Packages that use DateOperators.DateTrunc
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of DateOperators.DateTrunc in org.springframework.data.mongodb.core.aggregation
Methods in org.springframework.data.mongodb.core.aggregation that return DateOperators.DateTruncModifier and TypeMethodDescriptionDateOperators.DateTrunc.binSize(int binSize) Define the numeric time value.Define the numeric time value.DateOperators.DateTrunc.binSize(AggregationExpression expression) Define the numeric time value via anAggregationExpression.DateOperators.DateTrunc.startOfWeek(String day) Define the weeks starting day ifto(String)resolves to week.DateOperators.DateTrunc.startOfWeek(DayOfWeek day) Define the weeks starting day ifto(String)resolves to week.Define the unit of time.DateOperators.DateTrunc.to(AggregationExpression unit) Define the unit of time via anAggregationExpression.Creates newAggregationExpressionthat truncates a date to the given unit.DateOperators.DateOperatorFactory.truncate(DateOperators.TemporalUnit unit) Creates newAggregationExpressionthat truncates a date to the given unit.static DateOperators.DateTruncDateOperators.DateTrunc.truncateValue(Object value) Truncates the date value.static DateOperators.DateTruncDateOperators.DateTrunc.truncateValueOf(String fieldReference) Truncates the date value of the referenced field.static DateOperators.DateTruncDateOperators.DateTrunc.truncateValueOf(AggregationExpression expression) Truncates the date value of computed by the givenAggregationExpression.DateOperators.DateTrunc.withTimezone(DateOperators.Timezone timezone) Optionally set theDateOperators.Timezoneto use.