Function aerospike::expressions::max

source ·
pub const fn max(exps: Vec<FilterExpression>) -> FilterExpression
Expand description

Create expression that returns the maximum value in a variable number of expressions. All arguments must be the same type (integer or float). Requires server version 5.6.0+.

// max(a, b, c) > 100
use aerospike::expressions::{int_val, int_bin, gt, max};
gt(max(vec![int_bin("a".to_string()),int_bin("b".to_string()),int_bin("c".to_string())]), int_val(100));