extends
Object
implements
AggregationOperation
Encapsulates the aggregation framework
$skip
-operation.
We recommend to use the static factory method
Aggregation.skip(int)
instead of creating instances of this
class directly.
Since:
Author:
Thomas Darimont, Oliver Gierke, Christoph Strobl
See Also:
MongoDB Aggregation Framework:
$skip
org.bson.Document
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
SkipOperation
public
SkipOperation
(long skipCount)
Creates a new
SkipOperation
skipping the given number of elements.
Parameters:
skipCount
- number of documents to skip, must not be less than zero.
toDocument
Specified by:
toDocument
in interface
AggregationOperation
Parameters:
context
- the
AggregationOperationContext
to operate within. Must not be null.
Returns:
the Document
getOperator
Return the MongoDB operator that is used for this
AggregationOperation
. Aggregation operations should
implement this method to avoid document rendering.
Specified by:
getOperator
in interface
AggregationOperation
Returns:
the operator used for this
AggregationOperation
.