Class SampleOperation

java.lang.Object
org.springframework.data.mongodb.core.aggregation.SampleOperation
All Implemented Interfaces:
AggregationOperation

public class SampleOperation extends Object implements AggregationOperation
Encapsulates the $sample-operation.

We recommend to use the static factory method Aggregation.sample(long) instead of creating instances of this class directly.

Since:
2.0
Author:
Gustavo de Geus
See Also: