Function aerospike::expressions::map_bin

source ·
pub fn map_bin(name: String) -> FilterExpression
Expand description

Create map bin expression.

// Bin a["key"] == "value"
use aerospike::expressions::{ExpType, string_val, map_bin, eq};
use aerospike::MapReturnType;
use aerospike::expressions::maps::get_by_key;

eq(
    get_by_key(MapReturnType::Value, ExpType::STRING, string_val("key".to_string()), map_bin("a".to_string()), &[]),
    string_val("value".to_string()));