public static class DocumentOperators.DenseRank extends Object implements AggregationExpression
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.Constructor and Description |
---|
DenseRank() |
Modifier and Type | Method and Description |
---|---|
org.bson.Document |
toDocument(AggregationOperationContext context)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, toDocument
create, create
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
context
- must not be null.Document
) form of the expression.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.