public class LimitOperation extends Object implements AggregationOperation
$limit-operationhttp://docs.mongodb.org/manual/reference/aggregation/limit/| Constructor and Description |
|---|
LimitOperation(long maxElements) |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
public LimitOperation(long maxElements)
maxElements - Number of documents to consider.public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperationtoDBObject in interface AggregationOperationCopyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.