org.springframework.data.mongodb.core.aggregation
Class LimitOperation
java.lang.Object
org.springframework.data.mongodb.core.aggregation.LimitOperation
- All Implemented Interfaces:
- AggregationOperation
public class LimitOperation
- extends Object
- implements AggregationOperation
Encapsulates the $limit-operation
- Since:
- 1.3
- Author:
- Thomas Darimont, Oliver Gierke
- See Also:
http://docs.mongodb.org/manual/reference/aggregation/limit/
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitOperation
public LimitOperation(long maxElements)
- Parameters:
maxElements - Number of documents to consider.
toDBObject
public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
- Description copied from interface:
AggregationOperation
- Turns the
AggregationOperation into a DBObject by using the given
AggregationOperationContext.
- Specified by:
toDBObject in interface AggregationOperation
- Returns:
- the DBObject
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.