FireDAC.Phys.MongoDBWrapper.TMongoPipeline.Sample
Delphi
function Sample(const AValue: Integer): TMongoPipeline;
C++
TMongoPipeline* __fastcall Sample(const int AValue);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp |
FireDAC.Phys.MongoDBWrapper | TMongoPipeline |
Description
Defines the $sample stage that randomly selects the specified number of documents from its input.
For more information, see $sample (aggregation) in MongoDB documentation.