Package dev.morphia.aggregation.stages
Class SetWindowFields.Window
- java.lang.Object
-
- dev.morphia.aggregation.stages.SetWindowFields.Window
-
- Enclosing class:
- SetWindowFields
public static class SetWindowFields.Window extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>documents()SetWindowFields.Outputdocuments(Object lower, Object upper)A window where the lower and upper boundaries are specified relative to the position of the current document read from the collection.List<Object>range()SetWindowFields.Outputrange(Object lower, Object upper)A window where the lower and upper boundaries are defined using a range of values based on the sortBy field in the current document.SetWindowFields.Outputrange(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.TimeUnitunit()
-
-
-
Method Detail
-
documents
public SetWindowFields.Output documents(Object lower, Object upper)
A window where the lower and upper boundaries are specified relative to the position of the current document read from the collection.- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- the Output
-
documents
@Nullable @MorphiaInternal public List<Object> documents()
- Returns:
- the documents
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
range
public SetWindowFields.Output 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.- Parameters:
lower- the lower boundupper- the upper boundunit- the unit to use- Returns:
- the Output
-
range
public SetWindowFields.Output range(Object lower, Object upper)
A window where the lower and upper boundaries are defined using a range of values based on the sortBy field in the current document.- Parameters:
lower- the lower boundupper- the upper bound- Returns:
- the Output
-
range
@Nullable @MorphiaInternal public List<Object> range()
- Returns:
- the range
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-