Class DocumentOperators.DenseRank
java.lang.Object
org.springframework.data.mongodb.core.aggregation.DocumentOperators.DenseRank
- All Implemented Interfaces:
AggregationExpression
,MongoExpression
- Enclosing class:
- DocumentOperators
DocumentOperators.DenseRank
resolves the current document position (the rank) relative to other documents. If multiple
documents occupy the same rank, $denseRank places the document with the subsequent value at the next
rank without any gaps.- Since:
- 3.3
- Author:
- Christoph Strobl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bson.Document
toDocument
(AggregationOperationContext context) 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.AggregationExpression
toDocument
-
Constructor Details
-
DenseRank
public DenseRank()
-
-
Method Details
-
toDocument
Description copied from interface:AggregationExpression
- Specified by:
toDocument
in interfaceAggregationExpression
- Parameters:
context
- must not be null.- Returns:
- the MongoDB native (
Document
) form of the expression.
-