25 #include <aerospike/as_integer.h>
26 #include <aerospike/as_bytes.h>
27 #include <aerospike/as_list.h>
28 #include <aerospike/as_map.h>
29 #include <aerospike/as_string.h>
30 #include <aerospike/as_util.h>
31 #include <aerospike/as_val.h>
40 struct as_rec_hooks_s;
65 typedef struct as_rec_s {
82 const struct as_rec_hooks_s * hooks;
92 typedef struct as_rec_hooks_s {
97 bool (* destroy)(
as_rec * rec);
102 uint32_t (* hashcode)(
const as_rec * rec);
117 int (*
remove)(
const as_rec * rec,
const char * bin);
122 uint32_t (* ttl)(
const as_rec * rec);
127 uint16_t (* gen)(
const as_rec * rec);
132 uint16_t (* numbins)(
const as_rec * rec);
142 int (* set_flags)(
const as_rec * rec,
const char * bin, uint8_t flags);
147 int (* set_type)(
const as_rec * rec, uint8_t
type);
221 return rec ? rec->
data : NULL;
581 return as_util_hook(
foreach,
false, rec, callback, udata);