SamplingStrategy Method

Key Name Default Value Required

SamplingStrategy

Forward

No

Description

This options specifies how the connector samples data when generating a temporary schema definition.

  • Forward: The connector samples data starting from the first record in the database, then samples the next record, and so on.
  • Backward: The connector samples data starting from the last record in the database, then samples the preceding record, and so on.
  • Random: The connector selects sample records from the data source at random until the sampling limit is reached (for more information, see Documents to Sample).

Note:

The random sampling strategy is only supported by MongoDB Server 3.2 or higher.