pub fn get_by_index(
    return_type: ListReturnType,
    value_type: ExpType,
    index: FilterExpression,
    bin: FilterExpression,
    ctx: &[CdtContext]
) -> FilterExpression
Expand description

Create expression that selects list item identified by index and returns selected data specified by returnType.

// a[3] == 5
use aerospike::expressions::{ExpType, eq, int_val, list_bin};
use aerospike::operations::lists::ListReturnType;
use aerospike::expressions::lists::get_by_index;
eq(
  get_by_index(ListReturnType::Values, ExpType::INT, int_val(3), list_bin("a".to_string()), &[]),
  int_val(5));