Module spring.data.mongodb
Interface SetWindowFieldsOperation.Windows
- Enclosing class:
- SetWindowFieldsOperation
public static interface SetWindowFieldsOperation.Windows
- Author:
- Christoph Strobl
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionCreate a document window relative to the position of the current document via a fluent API.Create a document window relative to the position of the current document.range()Create a range window based on thesort valueof the current document via a fluent API.range(Object lower, Object upper, SetWindowFieldsOperation.WindowUnit unit) Create a range window defined based on sort expression.
-
Method Details
-
documents
Create a document window relative to the position of the current document.- Parameters:
lower- an integer for a position relative to the current document, current or unbounded.upper- an integer for a position relative to the current document, current or unbounded.- Returns:
- new instance of
SetWindowFieldsOperation.DocumentWindow.
-
range
static SetWindowFieldsOperation.RangeWindow range(Object lower, Object upper, @Nullable SetWindowFieldsOperation.WindowUnit unit) Create a range window defined based on sort expression.- Parameters:
lower- a numeric value to add the sort by field value of the current document, current or unbounded.upper- a numeric value to add the sort by field value of the current document, current or unbounded.- Returns:
- new instance of
SetWindowFieldsOperation.RangeWindow.
-
range
Create a range window based on thesort valueof the current document via a fluent API.- Returns:
- new instance of
SetWindowFieldsOperation.RangeWindowBuilder.
-
documents
Create a document window relative to the position of the current document via a fluent API.- Returns:
- new instance of
SetWindowFieldsOperation.DocumentWindowBuilder.
-