Package dev.morphia.aggregation.stages
Class Limit
java.lang.Object
dev.morphia.aggregation.stages.Stage
dev.morphia.aggregation.stages.Limit
Limits the number of documents passed to the next stage in the pipeline.
-
Method Summary
-
Method Details
-
limit
Creates the new stage.- Parameters:
limit
- the limit to apply- Returns:
- this
- Since:
- 2.2
- MongoDB documentation
- Aggregration Pipeline Stage: $limit
-