![]() |
Batch UDF (user defined function) apply.
All fields must be allocated on the heap (or global) when an async batch UDF is run under a transaction. The reason is transactions require an extra async call to add write keys to the transaction monitor record and this extra call causes stack variables to fall out of scope before the async batch is executed.
Definition at line 190 of file aerospike_batch.h.
#include "aerospike_batch.h"
Data Fields | |
as_list * | arglist |
const char *const char * | function |
bool | has_write |
bool | in_doubt |
as_key | key |
const as_policy_batch_apply * | policy |
as_record | record |
as_status | result |
as_batch_type | type |
as_list* as_batch_apply_record::arglist |
Optional arguments to lua function. If defined, the user must call as_arraylist_destroy() when done with the batch.
Definition at line 219 of file aerospike_batch.h.
const char* const char* as_batch_apply_record::function |
Package or lua module name. If heap defined, the user must free when done with the batch. Lua function name. If heap defined, the user must free when done with the batch.
Definition at line 213 of file aerospike_batch.h.
bool as_batch_apply_record::has_write |
Definition at line 195 of file aerospike_batch.h.
bool as_batch_apply_record::in_doubt |
Definition at line 196 of file aerospike_batch.h.
as_key as_batch_apply_record::key |
Definition at line 191 of file aerospike_batch.h.
const as_policy_batch_apply* as_batch_apply_record::policy |
Optional apply policy.
Definition at line 201 of file aerospike_batch.h.
as_record as_batch_apply_record::record |
Definition at line 192 of file aerospike_batch.h.
as_status as_batch_apply_record::result |
Definition at line 193 of file aerospike_batch.h.
as_batch_type as_batch_apply_record::type |
Definition at line 194 of file aerospike_batch.h.