All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Typedefs | Functions
aerospike_batch.h File Reference
#include <aerospike/aerospike.h>
#include <aerospike/as_batch.h>
#include <aerospike/as_error.h>
#include <aerospike/as_key.h>
#include <aerospike/as_list.h>
#include <aerospike/as_operations.h>
#include <aerospike/as_policy.h>
#include <aerospike/as_record.h>
#include <aerospike/as_status.h>
#include <aerospike/as_val.h>
#include <aerospike/as_vector.h>
+ Include dependency graph for aerospike_batch.h:

Go to the source code of this file.

Data Structures

struct  as_batch_read_record
 
struct  as_batch_read_records
 

Typedefs

typedef bool(* aerospike_batch_read_callback )(const as_batch_read *results, uint32_t n, void *udata)
 
typedef bool(* as_batch_callback_xdr )(as_key *key, as_record *record, void *udata)
 

Functions

as_status aerospike_batch_exists (aerospike *as, as_error *err, const as_policy_batch *policy, const as_batch *batch, aerospike_batch_read_callback callback, void *udata)
 
as_status aerospike_batch_get (aerospike *as, as_error *err, const as_policy_batch *policy, const as_batch *batch, aerospike_batch_read_callback callback, void *udata)
 
as_status aerospike_batch_get_bins (aerospike *as, as_error *err, const as_policy_batch *policy, const as_batch *batch, const char **bins, uint32_t n_bins, aerospike_batch_read_callback callback, void *udata)
 
as_status aerospike_batch_get_xdr (aerospike *as, as_error *err, const as_policy_batch *policy, const as_batch *batch, as_batch_callback_xdr callback, void *udata)
 
as_status aerospike_batch_read (aerospike *as, as_error *err, const as_policy_batch *policy, as_batch_read_records *records)
 
bool aerospike_has_batch_index (aerospike *as)
 

Typedef Documentation

typedef bool(* as_batch_callback_xdr)(as_key *key, as_record *record, void *udata)

This callback is used by aerospike_batch_get_xdr() to send one batch record at a time as soon as they are received in no particular order.

Definition at line 142 of file aerospike_batch.h.

Function Documentation

as_status aerospike_batch_get_xdr ( aerospike as,
as_error err,
const as_policy_batch policy,
const as_batch batch,
as_batch_callback_xdr  callback,
void *  udata 
)
private

Perform batch reads for XDR. The callback will be called for each record as soon as it's received in no particular order.

bool aerospike_has_batch_index ( aerospike as)

Do the connected servers support the new batch index protocol. The cluster must already be connected (aerospike_connect()) prior to making this call.