Function aerospike::expressions::num_mul
source · pub const fn num_mul(exps: Vec<FilterExpression>) -> FilterExpression
Expand description
Create “multiply” (*) operator that applies to a variable number of expressions.
Return the product of all FilterExpressions
. If only one FilterExpressions
is supplied, return
that FilterExpressions
. All FilterExpressions
must resolve to the same type (integer or float).
Requires server version 5.6.0+.
use aerospike::expressions::{lt, num_mul, int_val, int_bin};
// a * b * c < 100
lt(num_mul(vec![int_bin("a".to_string()), int_bin("b".to_string()), int_bin("c".to_string())]), int_val(100));