![]() |
Map Function Hooks
Definition at line 86 of file modules/common/src/include/aerospike/as_map.h.
#include "as_map.h"
Data Fields | |
int(* | clear )(as_map *map) |
bool(* | destroy )(as_map *map) |
bool(* | foreach )(const as_map *map, as_map_foreach_callback callback, void *udata) |
as_val *(* | get )(const as_map *map, const as_val *key) |
uint32_t(* | hashcode )(const as_map *map) |
union as_map_iterator_u *(* | iterator_init )(const as_map *map, union as_map_iterator_u *it) |
union as_map_iterator_u *(* | iterator_new )(const as_map *map) |
int(* | remove )(as_map *map, const as_val *key) |
int(* | set )(as_map *map, const as_val *key, const as_val *val) |
uint32_t(* | size )(const as_map *map) |
int(* as_map_hooks::clear)(as_map *map) |
Clear all entries of the map.
map | The map to clear. |
Definition at line 155 of file modules/common/src/include/aerospike/as_map.h.
bool(* as_map_hooks::destroy)(as_map *map) |
Releases the subtype of as_map.
map | The map instance to destroy. |
Definition at line 99 of file modules/common/src/include/aerospike/as_map.h.
bool(* as_map_hooks::foreach)(const as_map *map, as_map_foreach_callback callback, void *udata) |
Iterate over each entry in the map can call the callback function.
map | The map to iterate. |
callback | The function to call for each entry in the map. |
udata | User-data to be passed to the callback. |
Definition at line 180 of file modules/common/src/include/aerospike/as_map.h.
Set a value at the given key of the map.
map | The map to containing the (key,value) pair. |
key | The key of the value. |
Definition at line 146 of file modules/common/src/include/aerospike/as_map.h.
uint32_t(* as_map_hooks::hashcode)(const as_map *map) |
The hash value of an as_map.
map | The map to get the hashcode value for. |
Definition at line 112 of file modules/common/src/include/aerospike/as_map.h.
union as_map_iterator_u *(* as_map_hooks::iterator_init)(const as_map *map, union as_map_iterator_u *it) |
Initialize a stack allocated iterator to traverse over the entries map.
map | The map to iterate. |
Definition at line 198 of file modules/common/src/include/aerospike/as_map.h.
union as_map_iterator_u *(* as_map_hooks::iterator_new)(const as_map *map) |
Create and initialize a new heap allocated iterator to traverse over the entries map.
map | The map to iterate. |
Definition at line 189 of file modules/common/src/include/aerospike/as_map.h.
Remove the entry specified by the key.
map | The map to remove the entry from. |
key | The key of the entry to be removed. |
Definition at line 165 of file modules/common/src/include/aerospike/as_map.h.
Set a value of the given key in a map.
map | The map to store the (key,value) pair. |
key | The key for the given value. |
val | The value for the given key. |
Definition at line 136 of file modules/common/src/include/aerospike/as_map.h.
uint32_t(* as_map_hooks::size)(const as_map *map) |
The size of the as_map.
map | The map to get the size of. |
Definition at line 121 of file modules/common/src/include/aerospike/as_map.h.