Function aerospike::expressions::hll::get_similarity
source · pub fn get_similarity(
list: FilterExpression,
bin: FilterExpression
) -> FilterExpression
Expand description
Create expression that returns estimated similarity of these HLL objects as a 64 bit float.
use aerospike::expressions::{hll_bin, ge, float_val};
use aerospike::expressions::hll::get_similarity;
// Similarity of HLL bins "a" and "b" >= 0.75
ge(get_similarity(hll_bin("a".to_string()), hll_bin("b".to_string())), float_val(0.75));