Function aerospike::expressions::int_lscan
source · pub fn int_lscan(
value: FilterExpression,
search: FilterExpression
) -> FilterExpression
Expand description
Create expression that scans integer bits from left (most significant bit) to right (least significant bit), looking for a search bit value. When the search value is found, the index of that bit (where the most significant bit is index 0) is returned. If “search” is true, the scan will search for the bit value 1. If “search” is false it will search for bit value 0. Requires server version 5.6.0+.
// lscan(a, true) == 4
use aerospike::expressions::{int_val, int_bin, eq, int_lscan, bool_val};
eq(int_lscan(int_bin("a".to_string()), bool_val(true)), int_val(4));