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)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoPipelineStagespublic 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 AggregationOperationcontext - the AggregationOperationContext to operate within. Must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.