Class SetWindowFieldsOperation.ComputedField
java.lang.Object
org.springframework.data.mongodb.core.aggregation.SetWindowFieldsOperation.ComputedField
- All Implemented Interfaces:
Field
- Enclosing class:
- SetWindowFieldsOperation
A
Field
that the result of a computation done via an AggregationExpression
.- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorDescriptionComputedField
(String name, AggregationExpression windowOperator) Create a newSetWindowFieldsOperation.ComputedField
.ComputedField
(String name, AggregationExpression windowOperator, SetWindowFieldsOperation.Window window) Create a newSetWindowFieldsOperation.ComputedField
. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the field.Returns the target of the field.boolean
Returns whether the Field is aliased, which means it has a name set different from the target.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.Field
isInternal
-
Constructor Details
-
ComputedField
Create a newSetWindowFieldsOperation.ComputedField
.- Parameters:
name
- the target field name.windowOperator
- the expression to calculate the field value.
-
ComputedField
public ComputedField(String name, AggregationExpression windowOperator, @Nullable SetWindowFieldsOperation.Window window) Create a newSetWindowFieldsOperation.ComputedField
.- Parameters:
name
- the target field name.windowOperator
- the expression to calculate the field value.window
- the boundaries to operate within. Can be null.
-
-
Method Details
-
getName
Description copied from interface:Field
Returns the name of the field. -
getTarget
Description copied from interface:Field
Returns the target of the field. In case no explicit target is availableField.getName()
should be returned. -
isAliased
public boolean isAliased()Description copied from interface:Field
Returns whether the Field is aliased, which means it has a name set different from the target. -
getWindowOperator
-
getWindow
-