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 |
|---|---|
String |
getOperator()
Return the MongoDB operator that is used for this
AggregationOperation. |
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.public String getOperator()
AggregationOperationAggregationOperation. Aggregation operations should
implement this method to avoid document rendering.getOperator in interface AggregationOperationAggregationOperation.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.