All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
example_utils.h File Reference
#include <stdbool.h>
#include <stdio.h>
#include <aerospike/aerospike.h>
#include <aerospike/as_key.h>
#include <aerospike/as_operations.h>
#include <aerospike/as_record.h>
+ Include dependency graph for example_utils.h:

Go to the source code of this file.

Macros

#define DETAIL(_fmt, _args...)
 
#define EXAMPLE_BASIC_OPTS   "h:p:n:s:k:"
 
#define EXAMPLE_MULTI_KEY_OPTS   "h:p:n:s:K:"
 
#define LOG(_fmt, _args...)   { printf(_fmt "\n", ## _args); fflush(stdout); }
 
#define MAX_NAMESPACE_SIZE   32
 
#define MAX_SET_SIZE   64
 

Functions

void example_cleanup (aerospike *p_as)
 
void example_connect_to_aerospike (aerospike *p_as)
 
void example_connect_to_aerospike_with_udf_config (aerospike *p_as, const char *lua_user_path)
 
bool example_create_integer_index (aerospike *p_as, const char *bin, const char *index)
 
void example_dump_operations (const as_operations *p_ops)
 
void example_dump_record (const as_record *p_rec)
 
bool example_get_opts (int argc, char *argv[], const char *which_opts)
 
bool example_read_test_record (aerospike *p_as)
 
bool example_read_test_records (aerospike *p_as)
 
bool example_register_udf (aerospike *p_as, const char *filename)
 
void example_remove_index (aerospike *p_as, const char *index)
 
void example_remove_test_record (aerospike *p_as)
 
void example_remove_test_records (aerospike *p_as)
 
bool example_remove_udf (aerospike *p_as, const char *filename)
 

Variables

as_key g_key
 
uint32_t g_n_keys
 
char g_namespace [MAX_NAMESPACE_SIZE]
 
char g_set [MAX_SET_SIZE]
 

Macro Definition Documentation

#define DETAIL (   _fmt,
  _args... 
)

Definition at line 48 of file example_utils.h.

#define EXAMPLE_BASIC_OPTS   "h:p:n:s:k:"

Definition at line 81 of file example_utils.h.

#define EXAMPLE_MULTI_KEY_OPTS   "h:p:n:s:K:"

Definition at line 82 of file example_utils.h.

#define LOG (   _fmt,
  _args... 
)    { printf(_fmt "\n", ## _args); fflush(stdout); }

Definition at line 43 of file example_utils.h.

#define MAX_NAMESPACE_SIZE   32

Definition at line 56 of file example_utils.h.

#define MAX_SET_SIZE   64

Definition at line 57 of file example_utils.h.

Function Documentation

void example_cleanup ( aerospike p_as)
void example_connect_to_aerospike ( aerospike p_as)
void example_connect_to_aerospike_with_udf_config ( aerospike p_as,
const char *  lua_user_path 
)
bool example_create_integer_index ( aerospike p_as,
const char *  bin,
const char *  index 
)
void example_dump_operations ( const as_operations p_ops)
void example_dump_record ( const as_record p_rec)
bool example_get_opts ( int  argc,
char *  argv[],
const char *  which_opts 
)
bool example_read_test_record ( aerospike p_as)
bool example_read_test_records ( aerospike p_as)
bool example_register_udf ( aerospike p_as,
const char *  filename 
)
void example_remove_index ( aerospike p_as,
const char *  index 
)
void example_remove_test_record ( aerospike p_as)
void example_remove_test_records ( aerospike p_as)
bool example_remove_udf ( aerospike p_as,
const char *  filename 
)

Variable Documentation

as_key g_key
uint32_t g_n_keys
char g_namespace[MAX_NAMESPACE_SIZE]
char g_set[MAX_SET_SIZE]