All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
cl_query.h File Reference
#include <citrusleaf/cl_types.h>
#include <citrusleaf/cl_sindex.h>
#include <aerospike/as_rec.h>
#include <aerospike/as_map.h>
#include <aerospike/as_list.h>
#include <aerospike/as_result.h>
#include <aerospike/as_stream.h>
+ Include dependency graph for cl_query.h:

Go to the source code of this file.

Data Structures

struct  cl_query
 
struct  cl_query_response_rec
 
struct  cl_query_udf
 

Macros

#define cl_integer_equals(val)   CL_EQ, CL_INT, val
 
#define cl_integer_range(start, end)   CL_RANGE, CL_INT, start, end
 
#define cl_string_equals(val)   CL_EQ, CL_STR, val
 

Typedefs

typedef bool(* cl_query_cb )(as_val *val, void *udata)
 

Enumerations

enum  cl_query_op {
  CL_EQ, CL_LT, CL_GT, CL_LE,
  CL_GE, CL_RANGE
}
 
enum  cl_query_orderby_op { CL_ORDERBY_ASC, CL_ORDERBY_DESC }
 
enum  cl_query_udf_type { AS_UDF_CALLTYPE_NONE, AS_UDF_CALLTYPE_RECORD, AS_UDF_CALLTYPE_STREAM }
 

Functions

cl_rv citrusleaf_query_foreach (cl_cluster *cluster, const cl_query *query, void *udata, bool(*foreach)(as_val *, void *))
 
int cl_cluster_query_init (cl_cluster *asc)
 
void cl_cluster_query_shutdown (cl_cluster *asc)
 
cl_rv cl_query_aggregate (cl_query *query, const char *filename, const char *function, as_list *arglist)
 
void cl_query_destroy (cl_query *query)
 
int cl_query_filter (cl_query *query, const char *binname, cl_query_op op,...)
 
cl_rv cl_query_foreach (cl_query *query, const char *filename, const char *function, as_list *arglist)
 
cl_querycl_query_init (cl_query *query, const char *ns, const char *setname)
 
int cl_query_limit (cl_query *query, uint64_t limit)
 
cl_querycl_query_new (const char *ns, const char *setname)
 
int cl_query_orderby (cl_query *query, const char *binname, cl_query_orderby_op order)
 
int cl_query_select (cl_query *query, const char *binname)
 
int cl_query_where (cl_query *query, const char *binname, cl_query_op,...)
 
int cl_query_where_function (cl_query *query, const char *finame, cl_query_op,...)
 

Macro Definition Documentation

#define cl_integer_equals (   val)    CL_EQ, CL_INT, val

Definition at line 89 of file cl_query.h.

#define cl_integer_range (   start,
  end 
)    CL_RANGE, CL_INT, start, end

Definition at line 90 of file cl_query.h.

#define cl_string_equals (   val)    CL_EQ, CL_STR, val

Definition at line 91 of file cl_query.h.

Typedef Documentation

typedef bool(* cl_query_cb)(as_val *val, void *udata)

Definition at line 83 of file cl_query.h.

Enumeration Type Documentation

Enumerator
CL_EQ 
CL_LT 
CL_GT 
CL_LE 
CL_GE 
CL_RANGE 

Definition at line 37 of file cl_query.h.

Enumerator
CL_ORDERBY_ASC 
CL_ORDERBY_DESC 

Definition at line 38 of file cl_query.h.

Enumerator
AS_UDF_CALLTYPE_NONE 
AS_UDF_CALLTYPE_RECORD 
AS_UDF_CALLTYPE_STREAM 

Definition at line 42 of file cl_query.h.

Function Documentation

cl_rv citrusleaf_query_foreach ( cl_cluster *  cluster,
const cl_query query,
void *  udata,
bool(*)(as_val *, void *)  foreach 
)
int cl_cluster_query_init ( cl_cluster *  asc)
void cl_cluster_query_shutdown ( cl_cluster *  asc)
cl_rv cl_query_aggregate ( cl_query query,
const char *  filename,
const char *  function,
as_list arglist 
)
void cl_query_destroy ( cl_query query)

Destroy and free an cl_query

int cl_query_filter ( cl_query query,
const char *  binname,
cl_query_op  op,
  ... 
)
cl_rv cl_query_foreach ( cl_query query,
const char *  filename,
const char *  function,
as_list arglist 
)
cl_query* cl_query_init ( cl_query query,
const char *  ns,
const char *  setname 
)

Initializes an cl_query

int cl_query_limit ( cl_query query,
uint64_t  limit 
)
cl_query* cl_query_new ( const char *  ns,
const char *  setname 
)

Allocates and initializes a new cl_query

int cl_query_orderby ( cl_query query,
const char *  binname,
cl_query_orderby_op  order 
)
int cl_query_select ( cl_query query,
const char *  binname 
)

Query Builders

int cl_query_where ( cl_query query,
const char *  binname,
cl_query_op  ,
  ... 
)
int cl_query_where_function ( cl_query query,
const char *  finame,
cl_query_op  ,
  ... 
)