Class SkipOperation
java.lang.Object
org.springframework.data.mongodb.core.aggregation.SkipOperation
- All Implemented Interfaces:
AggregationOperation
Encapsulates the aggregation framework
$skip
-operation.
We recommend to use the static factory method Aggregation.skip(long)
instead of creating instances of this
class directly.
- Since:
- 1.3
- Author:
- Thomas Darimont, Oliver Gierke, Christoph Strobl
- See Also:
-
Constructor Summary
ConstructorDescriptionSkipOperation
(long skipCount) Creates a newSkipOperation
skipping the given number of elements. -
Method Summary
Modifier and TypeMethodDescriptionReturn the MongoDB operator that is used for thisAggregationOperation
.org.bson.Document
toDocument
(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationOperation
toPipelineStages
-
Constructor Details
-
SkipOperation
public SkipOperation(long skipCount) Creates a newSkipOperation
skipping the given number of elements.- Parameters:
skipCount
- number of documents to skip, must not be less than zero.
-
-
Method Details
-
toDocument
Description copied from interface:AggregationOperation
- Specified by:
toDocument
in interfaceAggregationOperation
- Parameters:
context
- theAggregationOperationContext
to operate within. Must not be null.- Returns:
- the Document
-
getOperator
Description copied from interface:AggregationOperation
Return the MongoDB operator that is used for thisAggregationOperation
. Aggregation operations should implement this method to avoid document rendering.- Specified by:
getOperator
in interfaceAggregationOperation
- Returns:
- the operator used for this
AggregationOperation
.
-