public static class DocumentOperators.Rank extends Object implements AggregationExpression
DocumentOperators.Rank resolves the current document position (the rank) relative to other documents. If multiple documents
occupy the same rank, $rank places the document with the subsequent value at a rank with a gap.| Constructor and Description |
|---|
Rank() |
| Modifier and Type | Method and Description |
|---|---|
org.bson.Document |
toDocument(AggregationOperationContext context)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createpublic org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressioncontext - must not be null.Document) form of the expression.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.