title: “Sample”

Sample

Transforms for taking samples of the elements in a collection, or samples of the values associated with each key in a collection of key-value pairs.

Examples

See BEAM-7703 for updates.

Related transforms

  • Top finds the largest (or smallest) set of elements in a collection
  • Latest computes the latest element in a collection