pub fn get_by_value(
    return_type: MapReturnType,
    value: FilterExpression,
    bin: FilterExpression,
    ctx: &[CdtContext]
) -> FilterExpression
Expand description

Create expression that selects map items identified by value and returns selected data specified by returnType.

// Map bin "a" contains value "BBB"
use aerospike::expressions::{gt, string_val, map_bin, int_val};
use aerospike::MapReturnType;
use aerospike::expressions::maps::get_by_value;

gt(get_by_value(MapReturnType::Count, string_val("BBB".to_string()), map_bin("a".to_string()), &[]), int_val(0));