Skip to content

Commit 23254c1

Browse files
christophstroblmp911de
authored andcommitted
Add support for $setWindowFields aggregation stage.
Add a SetWindowFieldsOperation to the aggregation framework. The builder API allows fluent declaration of the aggregation stage as shown in the sample below. SetWindowFieldsOperation.builder() .partitionByField("state") .sortBy(Sort.by(Direction.ASC, "date")) .output(AccumulatorOperators.valueOf("qty").sum()) .within(Windows.documents().fromUnbounded().toCurrent().build()) .as("cumulativeQuantityForState") .build(); Closes #3711 Original pull request: #3739.
1 parent 255491c commit 23254c1

File tree

3 files changed

+1026
-0
lines changed

3 files changed

+1026
-0
lines changed

0 commit comments

Comments
 (0)