Skip to main content

Module size

Module size 

Source
Expand description

A human-readable size type for the pipeline configuration.

Every size-shaped field in the pipeline configuration uses ConfigSize, so that one format covers bytes, megabytes and mebibytes instead of a different unit baked into each field name.

The syntax is the one Kubernetes documents for a resource quantity, which users of the Enterprise edition already write for their pods: a number and a unit, decimal (500M) or binary (512Mi). Feldera narrows it by taking one term only, no exponent form, and no negative or fractional-unit (m) quantities, which no configuration setting accepts.

Structs§

ConfigSize
A size in bytes written as a number and a unit, such as 500M, 512Mi, 1Gi or 4096.

Enums§

LegacySizeUnit
The unit in which a setting’s superseded numeric spelling was written.
ParseError
Errors returned when parsing a ConfigSize from a string.

Functions§

required_size_or_legacy_number
Like size_or_legacy_number, for a setting that is not optional: a null is refused rather than read as “unset”.
size_from_legacy_number
Warns, once per setting per process, that a value arrived as a bare number, and returns the size that number stands for, or the largest size when it overflows.
size_or_legacy_number
Deserializes a size setting that also accepts the bare number its earlier spelling took.