Uses of Class
dev.morphia.aggregation.expressions.TimeUnit
-
Packages that use TimeUnit Package Description dev.morphia.aggregation.expressions dev.morphia.aggregation.stages -
-
Uses of TimeUnit in dev.morphia.aggregation.expressions
Methods in dev.morphia.aggregation.expressions that return TimeUnit Modifier and Type Method Description static TimeUnit
TimeUnit. valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeUnit[]
TimeUnit. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in dev.morphia.aggregation.expressions with parameters of type TimeUnit Modifier and Type Method Description static dev.morphia.aggregation.expressions.impls.DateDeltaExpression
DateExpressions. dateAdd(dev.morphia.aggregation.expressions.impls.Expression startDate, long amount, TimeUnit unit)
Increments a Date object by a specified number of time units.static dev.morphia.aggregation.expressions.impls.DateDiffExpression
DateExpressions. dateDiff(dev.morphia.aggregation.expressions.impls.Expression startDate, dev.morphia.aggregation.expressions.impls.Expression endDate, TimeUnit unit)
Returns the difference between two dates.static dev.morphia.aggregation.expressions.impls.DateDeltaExpression
DateExpressions. dateSubtract(dev.morphia.aggregation.expressions.impls.Expression startDate, long amount, TimeUnit unit)
Decrements a Date object by a specified number of time units.static dev.morphia.aggregation.expressions.impls.DateTruncExpression
DateExpressions. dateTrunc(dev.morphia.aggregation.expressions.impls.Expression date, TimeUnit unit)
Truncates a date. -
Uses of TimeUnit in dev.morphia.aggregation.stages
Methods in dev.morphia.aggregation.stages that return TimeUnit Modifier and Type Method Description TimeUnit
Densify.Range. unit()
TimeUnit
SetWindowFields.Window. unit()
Methods in dev.morphia.aggregation.stages with parameters of type TimeUnit Modifier and Type Method Description SetWindowFields.Output
SetWindowFields.Window. range(Object lower, Object upper, TimeUnit unit)
A window where the lower and upper boundaries are defined using a range of values based on the sortBy field in the current document.Densify.Range
Densify.Range. unit(TimeUnit unit)
The unit to apply to the step field when incrementing date values in field.
-