All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Enumerations
target/Darwin-i386/include/aerospike/as_operations.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <aerospike/as_bin.h>
+ Include dependency graph for target/Darwin-i386/include/aerospike/as_operations.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  as_binop
 
struct  as_binops
 
struct  as_operations
 

Macros

#define as_operations_inita(__ops, __nops)
 

Enumerations

enum  as_operator {
  AS_OPERATOR_WRITE = 0, AS_OPERATOR_READ = 1, AS_OPERATOR_INCR = 2, AS_OPERATOR_PREPEND = 4,
  AS_OPERATOR_APPEND = 5, AS_OPERATOR_TOUCH = 8, AS_OPERATOR_WRITE = 0, AS_OPERATOR_READ = 1,
  AS_OPERATOR_INCR = 2, AS_OPERATOR_PREPEND = 4, AS_OPERATOR_APPEND = 5, AS_OPERATOR_TOUCH = 8
}
 

Macro Definition Documentation

#define as_operations_inita (   __ops,
  __nops 
)
related
Value:
(__ops)->_free = false;\
(__ops)->gen = 0;\
(__ops)->ttl = 0;\
(__ops)->binops._free = false;\
(__ops)->binops.capacity = __nops;\
(__ops)->binops.size = 0;\
(__ops)->binops.entries = (as_binop *) alloca(sizeof(as_binop) * __nops);

Initializes a stack allocated as_operations (as_operations) and allocates __nops number of entries on the stack.

as_operations_add_incr(&ops, "bin1", 123);
as_operations_add_append_str(&ops, "bin2", "abc");
Parameters
__opsThe as_operations * to initialize.
__nopsThe number of as_binops.entries to allocate on the stack.

Definition at line 324 of file target/Darwin-i386/include/aerospike/as_operations.h.

Enumeration Type Documentation

Operation Identifiers

Enumerator
AS_OPERATOR_WRITE 

Update the bin.

AS_OPERATOR_READ 

Return the bin from the cluster.

AS_OPERATOR_INCR 

Increment a bin containing an integer value.

AS_OPERATOR_PREPEND 

Prepend bytes to the bin containing either a string or blob.

AS_OPERATOR_APPEND 

Append bytes to the bin containing either a string or blob.

AS_OPERATOR_TOUCH 

Touch the record's ttl.

AS_OPERATOR_WRITE 

Update the bin.

AS_OPERATOR_READ 

Return the bin from the cluster.

AS_OPERATOR_INCR 

Increment a bin containing an integer value.

AS_OPERATOR_PREPEND 

Prepend bytes to the bin containing either a string or blob.

AS_OPERATOR_APPEND 

Append bytes to the bin containing either a string or blob.

AS_OPERATOR_TOUCH 

Touch the record's ttl.

Definition at line 36 of file target/Darwin-i386/include/aerospike/as_operations.h.