Skip to main content

Module sample_modal

Module sample_modal 

Source
Expand description

The Sample form: the one place an analysis’s rows are chosen, for every tool. It edits a copy of the shared Sample; Enter applies it, Esc discards it.

Every row is a setting whose value names itself: which rows (“All rows (36.8M)”, “Partitions”, “Files”, …), how they are picked, how many, and the seed. Picking a kind of rows shows only that kind’s inputs, with the context they need (the partition values that exist, the numbered files) and nothing else.

Structs§

SampleContext
What the table knows that the form’s choices depend on.
SampleForm

Enums§

RowsKind
Which rows the sample is drawn from.
SampleField
A row of the form. Only the rows the chosen kind and method need are shown.

Functions§

new_seed
A seed from the clock: another sample each time it is asked for. Six digits are plenty to tell samples apart and short enough to read back or type into a note.