Module spring.data.mongodb
Class SetWindowFieldsOperation.WindowOutput
java.lang.Object
org.springframework.data.mongodb.core.aggregation.SetWindowFieldsOperation.WindowOutput
- Enclosing class:
- SetWindowFieldsOperation
SetWindowFieldsOperation.WindowOutput defines output of $setWindowFields stage by defining the field(s) to append to the documents in the output.-
Constructor Summary
ConstructorsConstructorDescriptionWindowOutput(SetWindowFieldsOperation.ComputedField outputField) Create a new output containing the single givenfield. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.mongodb.core.aggregation.SetWindowFieldsOperation.WindowOutput.ComputedFieldAppenderappend(AggregationExpression expression) Append the givenAggregationExpressionas afieldin a fluent way.Append the givenfieldto the outptut.
-
Constructor Details
-
WindowOutput
Create a new output containing the single givenfield.- Parameters:
outputField- must not be null.
-
-
Method Details
-
append
Append the givenfieldto the outptut.- Parameters:
field- must not be null.- Returns:
- this.
-
append
public org.springframework.data.mongodb.core.aggregation.SetWindowFieldsOperation.WindowOutput.ComputedFieldAppender append(AggregationExpression expression) Append the givenAggregationExpressionas afieldin a fluent way.- Parameters:
expression- must not be null.- Returns:
- new instance of
SetWindowFieldsOperation.WindowOutput.ComputedFieldAppender. - See Also:
-