Skip to main content

Module map

Module map 

Source
Expand description

Pointwise kernels for evaluated series, independent of planning and execution nodes.

Expression column naming and omission of missing points belong to the planner/output adapter; these kernels retain the shared field schema and represent missing grid positions by validity.

ModulesΒ§

broadcast πŸ”’
comparison πŸ”’

EnumsΒ§

ArithmeticOp
Float arithmetic between a vector and a scalar, as in Prometheus.
Comparison
Filter keeps the vector value and labels; bool emits 0/1 and drops the metric name.
ComparisonOp
IEEE comparisons: NaN only satisfies NotEqual, and signed zeros compare equal.
MathOp
Float math supported by the evaluated-series kernel.
ParameterizedMath
A math function whose parameters are scalar expressions, which Prometheus evaluates at every step, with those parameters as time-varying scalars.
ScalarOperand
The scalar’s position in a binary expression; noncommutative operators retain this order.
ScalarSeriesOperand
A time-varying, unlabelled single-field scalar, with explicit operand direction.

FunctionsΒ§

constant_series
Produces an unlabelled scalar over exactly the requested evaluated range.
drop_empty_labels πŸ”’
Drops labels with empty values, which Prometheus treats as absent.
drop_metric_name πŸ”’
Prometheus DropReserved(schema.IsMetadataLabel) drops the type and unit labels with the name. Empty values are dropped too: Prometheus has no empty labels, and keeping them would hide a same-labelset collision from the caller.
float_sample πŸ”’
A sample of a series accepted by validate_float_series.
go_max πŸ”’
Go math.Max: +Inf wins over NaN, and +0 over -0.
go_min πŸ”’
Go math.Min: -Inf wins over NaN, and -0 over +0.
is_float_series πŸ”’
Whether every field of series holds float samples only.
map_arithmetic
Applies arithmetic against a constant scalar to every field and drops the metric name.
map_arithmetic_literal πŸ”’
Applies literal scalar arithmetic to float and histogram samples. Float-only series retain the original kernel unchanged; histogram-capable fields are traversed sample-by-sample.
map_arithmetic_segment πŸ”’
Applies one literal scalar operation to one run of samples, reporting whether any histogram position had no answer.
map_arithmetic_series
Applies arithmetic between vector fields and a time-varying scalar, aligned by absolute grid index, and drops the metric name.
map_compare_literal
Compares a vector with a constant scalar, dropping the samples that have no comparison rather than failing the query.
map_compare_series
Compares against a time-varying scalar. Filter keeps vector values and labels; bool emits 0/1 and drops the metric name.
map_float_fields πŸ”’
map_float_segment πŸ”’
map_math
Applies float math to every field of one evaluated series and drops the metric name, like Prometheus’ simpleFloatFunc.
map_math_with_parameters
Applies function to every field with its parameters read at each point from time-varying scalars, and drops the metric name, as crate::map::map_math does with constant parameters; native histogram samples are skipped the same way.
map_pi
Evaluates pi() without a vector input, preserving the requested short grid range.
map_samples πŸ”’
rebuild_labels πŸ”’
One rebuild: removing labels one by one copies the label array each time.
series_error πŸ”’
validate_float_series πŸ”’
Checks an evaluated float series up front, so no segment of another type yields a result.
validate_grid_series πŸ”’
Checks series against schema and its evaluation grid, whatever its sample types.