#include <aerospike/as_map.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Remove all entries from the map.
- Parameters
-
- Returns
- 0 on success. Otherwise an error occurred.
Free the map and associated resources.
- Parameters
-
Call the callback function for each entry in the map.
- Parameters
-
map | The map. |
callback | The function to call for each entry. |
udata | User-data to be passed to the callback. |
- Returns
- true if iteration completes fully. false if iteration was aborted.
Get the value for specified key.
- Parameters
-
- Returns
- The value for the specified key. Otherwise NULL.
uint32_t as_hashmap_hashcode |
( |
const as_hashmap * |
map) | |
|
The hash value of the map.
- Parameters
-
- Returns
- The hash value of the list.
Initialize a stack allocated hashmap.
- Parameters
-
map | The map to initialize. |
buckets | The number of hash buckets to allocate. |
- Returns
- On success, the initialized map. Otherwise NULL.
Creates a new map as a hashmap.
- Parameters
-
buckets | The number of hash buckets to allocate. |
- Returns
- On success, the new map. Otherwise NULL.
Remove the entry specified by the key.
- Parameters
-
map | The map to remove the entry from. |
key | The key of the entry to be removed. |
- Returns
- 0 on success. Otherwise an error occurred.
Set the value for specified key.
- Parameters
-
map | The map. |
key | The key. |
val | The value for the given key. |
- Returns
- 0 on success. Otherwise an error occurred.
uint32_t as_hashmap_size |
( |
const as_hashmap * |
map) | |
|
Get the number of entries in the map.
- Parameters
-
- Returns
- The number of entries in the map.