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 |
|---|---|
org.bson.Document |
toDocument(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 org.bson.Document toDocument(AggregationOperationContext context)
AggregationOperationtoDocument in interface AggregationOperationCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.