Module spring.data.mongodb
Class ConvertOperators
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ConvertOperators
Gateway to convert aggregation operations.
- Since:
- 2.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAggregationExpressionfor$convertthat converts a value to a specified type.static classstatic classAggregationExpressionfor$degreesToRadiansthat converts an input value measured in degrees to radians.static classAggregationExpressionfor$toBoolthat converts a value to boolean.static classAggregationExpressionfor$toDatethat converts a value to date.static classAggregationExpressionfor$toDecimalthat converts a value to decimal.static classAggregationExpressionfor$toDoublethat converts a value to double.static classAggregationExpressionfor$toIntthat converts a value to integer.static classAggregationExpressionfor$toLongthat converts a value to long.static classAggregationExpressionfor$toObjectIdthat converts a value to objectId.static classAggregationExpressionfor$toStringthat converts a value to string. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTake the field referenced by given fieldReference.valueOf(AggregationExpression expression) Take the value resulting from the givenAggregationExpression.
-
Constructor Details
-
ConvertOperators
public ConvertOperators()
-
-
Method Details
-
valueOf
Take the field referenced by given fieldReference.- Parameters:
fieldReference- must not be null.- Returns:
-
valueOf
Take the value resulting from the givenAggregationExpression.- Parameters:
expression- must not be null.- Returns:
-