All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields
as_rec_hooks Struct Reference

Detailed Description

Record Hooks.

An implementation of as_rec should provide implementations for each of the hooks.

Definition at line 92 of file modules/common/src/include/aerospike/as_rec.h.

#include "as_rec.h"

+ Collaboration diagram for as_rec_hooks:

Data Fields

bool(* destroy )(as_rec *rec)
 
as_bytes *(* digest )(const as_rec *rec)
 
bool(* foreach )(const as_rec *rec, as_rec_foreach_callback callback, void *udata)
 
uint16_t(* gen )(const as_rec *rec)
 
as_val *(* get )(const as_rec *rec, const char *name)
 
uint32_t(* hashcode )(const as_rec *rec)
 
uint16_t(* numbins )(const as_rec *rec)
 
int(* remove )(const as_rec *rec, const char *bin)
 
int(* set )(const as_rec *rec, const char *name, const as_val *value)
 
int(* set_flags )(const as_rec *rec, const char *bin, uint8_t flags)
 
int(* set_type )(const as_rec *rec, uint8_t type)
 
uint32_t(* ttl )(const as_rec *rec)
 

Field Documentation

bool(* as_rec_hooks::destroy)(as_rec *rec)

Destroy the record.

Definition at line 97 of file modules/common/src/include/aerospike/as_rec.h.

as_bytes *(* as_rec_hooks::digest)(const as_rec *rec)

Get the digest of the record.

Definition at line 137 of file modules/common/src/include/aerospike/as_rec.h.

bool(* as_rec_hooks::foreach)(const as_rec *rec, as_rec_foreach_callback callback, void *udata)

Iterate over each bin in the record.

Definition at line 152 of file modules/common/src/include/aerospike/as_rec.h.

uint16_t(* as_rec_hooks::gen)(const as_rec *rec)

Get the generation value of the record.

Definition at line 127 of file modules/common/src/include/aerospike/as_rec.h.

as_val *(* as_rec_hooks::get)(const as_rec *rec, const char *name)

Get the value of the bin in the record.

Definition at line 107 of file modules/common/src/include/aerospike/as_rec.h.

uint32_t(* as_rec_hooks::hashcode)(const as_rec *rec)

Get the hashcode of the record.

Definition at line 102 of file modules/common/src/include/aerospike/as_rec.h.

uint16_t(* as_rec_hooks::numbins)(const as_rec *rec)

Get the number of bins of the record.

Definition at line 132 of file modules/common/src/include/aerospike/as_rec.h.

int(* as_rec_hooks::remove)(const as_rec *rec, const char *bin)

Remove the bin from the record.

Definition at line 117 of file modules/common/src/include/aerospike/as_rec.h.

int(* as_rec_hooks::set)(const as_rec *rec, const char *name, const as_val *value)

Set the value of the bin in the record.

Definition at line 112 of file modules/common/src/include/aerospike/as_rec.h.

int(* as_rec_hooks::set_flags)(const as_rec *rec, const char *bin, uint8_t flags)

Set flags on a bin.

Definition at line 142 of file modules/common/src/include/aerospike/as_rec.h.

int(* as_rec_hooks::set_type)(const as_rec *rec, uint8_t type)

Set the type of record.

Definition at line 147 of file modules/common/src/include/aerospike/as_rec.h.

uint32_t(* as_rec_hooks::ttl)(const as_rec *rec)

Get the ttl value of the record.

Definition at line 122 of file modules/common/src/include/aerospike/as_rec.h.


The documentation for this struct was generated from the following file: