List bin operations
Aerospike list bin expressions enable you to manipulate list-type bins directly in queries.
This guide covers operations like append, insert, remove, set, and increment, allowing you to read or modify lists efficiently.
Modify
list_append(context, policy, value, bin)Append value to list bin. list_append does not create a new bin if the specified bin does not exist, unlike the append CDT List operation, which does create a new bin if the specified bin does not exist.
| Name | Type |
|---|---|
context | library_specific |
policy | library_specific |
value | expr |
bin | list_bin_expr |
list_bin list_append_items(context, policy, values, bin)Append all elements in values to list bin.
| Name | Type |
|---|---|
context | library_specific |
policy | library_specific |
values | list_expr |
bin | list_bin_expr |
list_bin list_clear(context, bin)Clear all elements in list bin.
| Name | Type |
|---|---|
context | library_specific |
bin | list_bin_expr |
list_bin list_increment(context, policy, index, delta, bin)Increment element at index by delta.
| Name | Type |
|---|---|
context | library_specific |
policy | library_specific |
index | integer_expr |
delta | integer_expr |
bin | list_bin_expr |
list_bin list_insert(context, policy, index, value, bin)Insert value at index.
| Name | Type |
|---|---|
context | library_specific |
policy | library_specific |
index | integer_expr |
value | expr |
bin | list_bin_expr |
list_bin list_insert_items(context, policy, index, values, bin)Insert all elements in values at index.
| Name | Type |
|---|---|
context | library_specific |
policy | library_specific |
index | integer_expr |
values | list_expr |
bin | list_bin_expr |
list_bin list_remove_by_index(context, index, bin)Remove element at index.
| Name | Type |
|---|---|
context | library_specific |
index | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_index_range(context, index, count, bin)Remove count element at index.
| Name | Type |
|---|---|
context | library_specific |
index | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_index_range_to_end(context, index, bin)Remove all elements at and after index.
| Name | Type |
|---|---|
context | library_specific |
index | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_rank(context, rank, bin)Remove all element with rank rank.
| Name | Type |
|---|---|
context | library_specific |
rank | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_rank_range(context, rank, count, bin)Remove count element at rank.
| Name | Type |
|---|---|
context | library_specific |
rank | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_rank_range_to_end(context, rank, bin)Remove all elements at and after rank.
| Name | Type |
|---|---|
context | library_specific |
rank | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_rel_rank_range(context, value, rank, count, bin)Remove count element at rank relative to value.
| Name | Type |
|---|---|
context | library_specific |
value | expr |
rank | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_rel_rank_range_to_end(context, value, rank, bin)Remove all elements at and after rank relative to value.
| Name | Type |
|---|---|
context | library_specific |
value | expr |
rank | integer_expr |
bin | list_bin_expr |
list_bin list_remove_by_value(context, value, bin)Remove all value values from list.
| Name | Type |
|---|---|
context | library_specific |
value | expr |
bin | list_bin_expr |
list_bin list_remove_by_value_list(context, value, bin)Remove all elements with values in value_list from list.
| Name | Type |
|---|---|
context | library_specific |
value | list_expr |
bin | list_bin_expr |
list_bin list_remove_by_value_range(context, start, end, bin)Remove all elements x in interval start ≤ x < end from list.
| Name | Type |
|---|---|
context | library_specific |
start | expr |
end | expr |
bin | list_bin_expr |
list_bin list_set(context, index, value, bin)Set element at index to value.
| Name | Type |
|---|---|
context | library_specific |
index | integer-expr |
value | expr |
bin | list_bin_expr |
list_bin list_sort(context, flag, bin)Sort list.
| Name | Type |
|---|---|
context | library_specific |
flag | integer |
bin | list_bin_expr |
list_bin Read
list_get_by_index(type, context, result_type, index, bin)Get element at index.
| Name | Type |
|---|---|
type | integer_value |
context | library_specific |
result_type | integer_value |
index | integer_expr |
bin | list_bin_expr |
list_get_by_index_range(context, result_type, index, count, bin)Get count elements at index.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
index | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_get_by_index_range_to_end(context, result_type, index, bin)Get elements at and after index.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
index | integer_expr |
bin | list_bin_expr |
list_get_by_rank(type, context, result_type, rank, bin)Get element at rank.
| Name | Type |
|---|---|
type | integer_value |
context | library_specific |
result_type | integer_value |
rank | integer_expr |
bin | list_bin_expr |
list_get_by_rank_range(context, result_type, rank, count, bin)Get count elements at rank.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
rank | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_get_by_rank_range_to_end(context, result_type, rank, bin)Get elements at and after rank.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
rank | integer_expr |
bin | list_bin_expr |
list_get_by_rel_rank_range(context, result_type, value, rank, count, bin)Get count element at rank relative to value.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
value | expr |
rank | integer_expr |
count | integer_expr |
bin | list_bin_expr |
list_get_by_rel_rank_range_to_end(context, result_type, value, rank, bin)Get all elements at and after rank relative to value.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
value | expr |
rank | integer_expr |
bin | list_bin_expr |
list_get_by_value(context, result_type, value, bin)Get all value values from list.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
value | expr |
bin | list_bin_expr |
list_get_by_value_list(context, result_type, values, bin)Get all elements with values in values from list.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
values | list_expr |
bin | list_bin_expr |
list_get_by_value_range(context, result_type, start, end, bin)Get all elements x in interval start ≤ x < end from list.
| Name | Type |
|---|---|
context | library_specific |
result_type | integer_value |
start | expr |
end | expr |
bin | list_bin_expr |
list_size(context, bin)Get list element count.
| Name | Type |
|---|---|
context | library_specific |
bin | list_bin_expr |
integer_bin