Go to the source code of this file.
|
as_status | aerospike_scan_background (aerospike *as, as_error *err, const as_policy_scan *policy, const as_scan *scan, uint64_t *scan_id) |
|
as_status | aerospike_scan_foreach (aerospike *as, as_error *err, const as_policy_scan *policy, const as_scan *scan, aerospike_scan_foreach_callback callback, void *udata) |
|
as_status | aerospike_scan_info (aerospike *as, as_error *err, const as_policy_info *policy, uint64_t scan_id, as_scan_info *info) |
|
as_status | aerospike_scan_node (aerospike *as, as_error *err, const as_policy_scan *policy, const as_scan *scan, const char *node_name, aerospike_scan_foreach_callback callback, void *udata) |
|
as_status | aerospike_scan_wait (aerospike *as, as_error *err, const as_policy_info *policy, uint64_t scan_id, uint32_t interval_ms) |
|
Scan the records in the specified namespace and set for a single node.
The callback function will be called for each record scanned. When all records have been scanned, then callback will be called with a NULL value for the record.
char* node_names = NULL;
int n_nodes = 0;
if (n_nodes <= 0)
return <error>;
fprintf(stderr, "error(%d) %s at [%s:%d]", err.code, err.message, err.file, err.line);
}
free(node_names);
- Parameters
-
as | The aerospike instance to use for this operation. |
err | The as_error to be populated if an error occurs. |
policy | The policy to use for this operation. If NULL, then the default policy will be used. |
scan | The scan to execute against the cluster. |
node_name | The node name to scan. |
callback | The function to be called for each record scanned. |
udata | User-data to be passed to the callback. |
- Returns
- AEROSPIKE_OK on success. Otherwise an error occurred.
Wait for a background scan to be completed by servers.
- Parameters
-
as | The aerospike instance to use for this operation. |
err | The as_error to be populated if an error occurs. |
policy | The policy to use for this operation. If NULL, then the default policy will be used. |
scan_id | The id for the scan job. |
interval_ms | The polling interval in milliseconds. If zero, 1000 ms is used. |
- Returns
- AEROSPIKE_OK on success. Otherwise an error occurred.