Module spring.data.mongodb
Class ArithmeticOperators.Rand
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ArithmeticOperators.Rand
- All Implemented Interfaces:
AggregationExpression,MongoExpression
- Enclosing class:
- ArithmeticOperators
ArithmeticOperators.Rand returns a floating value between 0 and 1.- Since:
- 3.3
- Author:
- Mushtaq Ahmed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.DocumenttoDocument(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationExpression
toDocument
-
Constructor Details
-
Rand
public Rand()
-
-
Method Details
-
toDocument
Description copied from interface:AggregationExpression- Specified by:
toDocumentin interfaceAggregationExpression- Parameters:
context- must not be null.- Returns:
- the MongoDB native (
Document) form of the expression.
-