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 101 of file as_rec.h.

#include "as_rec.h"

+ Collaboration diagram for as_rec_hooks:

Data Fields

int(* bin_names )(const as_rec *rec, as_rec_bin_names_callback callback, void *udata)
 
bool(* destroy )(as_rec *rec)
 
uint32_t(* device_size )(const as_rec *rec)
 
as_bytes *(* digest )(const as_rec *rec)
 
int(* drop_key )(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)
 
as_val *(* key )(const as_rec *rec)
 
uint64_t(* last_update_time )(const as_rec *rec)
 
uint32_t(* memory_size )(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_ttl )(const as_rec *rec, uint32_t ttl)
 
const char *(* setname )(const as_rec *rec)
 
uint32_t(* size )(const as_rec *rec)
 
uint32_t(* ttl )(const as_rec *rec)
 

Field Documentation

int(* as_rec_hooks::bin_names)(const as_rec *rec, as_rec_bin_names_callback callback, void *udata)

Get a list of the record's bin names.

Definition at line 176 of file as_rec.h.

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

Destroy the record.

Definition at line 106 of file as_rec.h.

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

Get the device storage size of the record. Deprecated!

Definition at line 156 of file as_rec.h.

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

Get the digest of the record.

Definition at line 181 of file as_rec.h.

int(* as_rec_hooks::drop_key)(const as_rec *rec)

Discard the record's key.

Definition at line 191 of file 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 196 of file as_rec.h.

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

Get the generation value of the record.

Definition at line 141 of file 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 116 of file as_rec.h.

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

Get the hashcode of the record.

Definition at line 111 of file as_rec.h.

as_val*(* as_rec_hooks::key)(const as_rec *rec)

Get the record's key.

Definition at line 161 of file as_rec.h.

uint64_t(* as_rec_hooks::last_update_time)(const as_rec *rec)

Get the last update time of the record.

Definition at line 136 of file as_rec.h.

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

Get the memory storage size of the record. Deprecated!

Definition at line 151 of file as_rec.h.

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

Get the number of bins of the record.

Definition at line 171 of file as_rec.h.

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

Remove the bin from the record.

Definition at line 126 of file 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 121 of file as_rec.h.

int(* as_rec_hooks::set_ttl)(const as_rec *rec, uint32_t ttl)

Set the time to live (ttl) of the record.

Definition at line 186 of file as_rec.h.

const char*(* as_rec_hooks::setname)(const as_rec *rec)

Get the record's set name.

Definition at line 166 of file as_rec.h.

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

Get the stored size (bytes) of the record.

Definition at line 146 of file as_rec.h.

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

Get the ttl value of the record.

Definition at line 131 of file as_rec.h.


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