sample

fun sample(limit: Long, seed: Long? = null): ScanType.Sample

Selects random documents.

Parameters

limit

Upper bound (inclusive) on the number of items to select.

seed

Seed for the random number generator that selects the items, or null to use a random seed. CAVEAT: Specifying the same seed does not guarantee the same documents are selected.