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 TimeUnitTimeUnit. 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.DateDeltaExpressionDateExpressions. 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.DateDiffExpressionDateExpressions. 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.DateDeltaExpressionDateExpressions. 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.DateTruncExpressionDateExpressions. 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 TimeUnitDensify.Range. unit()TimeUnitSetWindowFields.Window. unit()Methods in dev.morphia.aggregation.stages with parameters of type TimeUnit Modifier and Type Method Description SetWindowFields.OutputSetWindowFields.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.RangeDensify.Range. unit(TimeUnit unit)The unit to apply to the step field when incrementing date values in field.
-