Skip to main content

Module stop_condition

Module stop_condition 

Source
Expand description

Composable stop conditions for early termination of stream-based profiling.

A StopCondition describes when to stop; a StopEvaluator is the mutable runtime checker that tracks counters and evaluates the condition after each chunk.

Structs§

SchemaStabilityTracker
Tracks consecutive rows where the schema (column types) has not changed. Used by engines to implement SchemaStable stop conditions.
StopEvaluator
Runtime evaluator that checks a StopCondition against accumulated counters.

Enums§

StopCondition
A composable condition that can trigger early termination of profiling.

Functions§

schema_stable_threshold
Extracts the consecutive_stable_rows threshold from a StopCondition, searching through Any/All composites. Returns None if no SchemaStable variant is present.