public class SkipOperation extends Object implements AggregationOperation
$skip-operation.
We recommend to use the static factory method Aggregation.skip(int) instead of creating instances of this
class directly.
| Constructor and Description |
|---|
SkipOperation(long skipCount)
Creates a new
SkipOperation skipping the given number of elements. |
| Modifier and Type | Method and Description |
|---|---|
com.mongodb.DBObject |
toDBObject(AggregationOperationContext context)
|
public SkipOperation(long skipCount)
SkipOperation skipping the given number of elements.skipCount - number of documents to skip, must not be less than zero.public com.mongodb.DBObject toDBObject(AggregationOperationContext context)
AggregationOperationtoDBObject in interface AggregationOperationCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.