Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Method and Description |
---|---|
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diff(Object value,
DateOperators.TemporalUnit unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date given
value. |
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diff(Object value,
String unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date given
value. |
static DateOperators.DateDiff |
DateOperators.DateDiff.diffValue(Object value,
String unit)
Add the number of units to a
start date . |
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diffValueOf(AggregationExpression expression,
DateOperators.TemporalUnit unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date
computed by the given expression . |
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diffValueOf(AggregationExpression expression,
String unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date
computed by the given expression . |
static DateOperators.DateDiff |
DateOperators.DateDiff.diffValueOf(AggregationExpression expression,
String unit)
Add the number of units of the result of the given
expression to a
start date . |
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diffValueOf(String fieldReference,
DateOperators.TemporalUnit unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date stored
at the given field. |
DateOperators.DateDiff |
DateOperators.DateOperatorFactory.diffValueOf(String fieldReference,
String unit)
Creates new
AggregationExpression that calculates the difference (in units) to the date stored
at the given field. |
static DateOperators.DateDiff |
DateOperators.DateDiff.diffValueOf(String fieldReference,
String unit)
Add the number of units from a field to a
start date . |
DateOperators.DateDiff |
DateOperators.DateDiff.startOfWeek(Object day)
Set the start day of the week if the unit if measure is set to week.
|
DateOperators.DateDiff |
DateOperators.DateDiff.toDate(Object dateExpression)
Define the start date, in UTC, for the addition operation.
|
DateOperators.DateDiff |
DateOperators.DateDiff.toDateOf(AggregationExpression expression)
Define the start date, in UTC, for the addition operation.
|
DateOperators.DateDiff |
DateOperators.DateDiff.toDateOf(String fieldReference)
Define the start date, in UTC, for the addition operation.
|
DateOperators.DateDiff |
DateOperators.DateDiff.withTimezone(DateOperators.Timezone timezone)
Optionally set the
DateOperators.Timezone to use. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.