Loading

mapper.sum.forbid-nulls


mapper
Since v1.0.11
Deprecated since v2.4.1
Available on all platforms
See also

Deprecated: mapper.sum.forbid-nulls has the same behavior as mapper.sum, use mapper.sum instead.

This mapper function computes the sum of all the values found in the sliding window. The associated location and elevation are those of the most recent tick of the window.

The mapper.sum.forbid-nulls function can only be applied to values of type LONG or DOUBLE, it will produce no value for types STRING and BOOLEAN.

If a value is NULL in the bucket, the result is NULL.

Signature

Examples

[ [ NEWGTS "GTS1" RENAME 10 NaN NaN NaN 5.0 ADDVALUE 20 NaN NaN NaN 120.0 ADDVALUE NEWGTS "GTS2" RENAME 10 NaN NaN NaN 8.0 ADDVALUE 20 NaN NaN NaN 42.0 ADDVALUE ] mapper.sum.forbid-nulls 2 0 0 ] MAP