Method Sample
Sample<TInput>(long)
Creates a $sample stage.
public static PipelineStageDefinition<TInput, TInput> Sample<TInput>(long size)
Parameters
size
longThe size.
Returns
- PipelineStageDefinition<TInput, TInput>
The stage.
Type Parameters
TInput
The type of the input documents.