Toggle main menu visibility
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
Variables
Typedefs
a
b
d
e
f
i
l
m
n
p
q
r
s
t
u
v
w
Enumerations
a
b
c
e
h
i
j
l
m
o
p
q
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
x
Macros
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
▼
Aerospike C Client API
Introduction
►
Data Structures
▼
Files
▼
File List
▼
aerospike
aerospike.h
►
aerospike_batch.h
►
aerospike_index.h
►
aerospike_info.h
►
aerospike_key.h
►
aerospike_query.h
►
aerospike_scan.h
►
aerospike_stats.h
►
aerospike_txn.h
►
aerospike_udf.h
►
as_address.h
►
as_admin.h
►
as_aerospike.h
►
as_arch.h
►
as_arraylist.h
►
as_arraylist_iterator.h
►
as_async.h
►
as_async_proto.h
►
as_atomic.h
►
as_atomic_gcc.h
►
as_atomic_win.h
►
as_batch.h
►
as_bin.h
►
as_bit_operations.h
►
as_boolean.h
►
as_buffer.h
►
as_buffer_pool.h
►
as_bytes.h
►
as_cdt_ctx.h
►
as_cdt_internal.h
►
as_cdt_order.h
►
as_cluster.h
►
as_command.h
►
as_config.h
►
as_conn_pool.h
►
as_cpu.h
►
as_dir.h
►
as_double.h
►
as_error.h
►
as_event.h
►
as_event_internal.h
►
as_exp.h
►
as_exp_operations.h
►
as_geojson.h
►
as_hashmap.h
►
as_hashmap_iterator.h
►
as_hll_operations.h
►
as_host.h
►
as_info.h
►
as_integer.h
►
as_iterator.h
►
as_job.h
►
as_key.h
►
as_latency.h
►
as_list.h
►
as_list_iterator.h
►
as_list_operations.h
►
as_listener.h
►
as_log.h
►
as_log_macros.h
►
as_lookup.h
►
as_map.h
►
as_map_iterator.h
►
as_map_operations.h
►
as_metrics.h
►
as_metrics_writer.h
►
as_module.h
►
as_monitor.h
►
as_msgpack.h
►
as_msgpack_ext.h
►
as_msgpack_serializer.h
►
as_nil.h
►
as_node.h
►
as_operations.h
►
as_orderedmap.h
►
as_pair.h
►
as_partition.h
►
as_partition_filter.h
►
as_partition_tracker.h
►
as_password.h
►
as_peers.h
►
as_pipe.h
►
as_policy.h
►
as_poll.h
►
as_proto.h
►
as_query.h
►
as_query_validate.h
►
as_queue.h
►
as_queue_mt.h
►
as_random.h
►
as_rec.h
►
as_record.h
►
as_record_iterator.h
►
as_result.h
►
as_scan.h
►
as_serializer.h
►
as_shm_cluster.h
►
as_sleep.h
►
as_socket.h
►
as_status.h
►
as_std.h
►
as_stream.h
►
as_string.h
►
as_string_builder.h
►
as_stringmap.h
►
as_thread.h
►
as_thread_pool.h
►
as_timer.h
►
as_tls.h
►
as_txn.h
►
as_txn_monitor.h
as_types.h
►
as_udf.h
►
as_udf_context.h
►
as_util.h
►
as_val.h
►
as_vector.h
►
ssl_util.h
►
version.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
as_cdt_order.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2024 Aerospike, Inc.
3
*
4
* Portions may be licensed to Aerospike, Inc. under one or more contributor
5
* license agreements.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
8
* use this file except in compliance with the License. You may obtain a copy of
9
* the License at http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
* License for the specific language governing permissions and limitations under
15
* the License.
16
*/
17
#pragma once
18
19
#include <
aerospike/as_std.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
/******************************************************************************
26
* TYPES
27
*****************************************************************************/
28
29
/**
30
* List storage order.
31
*
32
* @ingroup list_operations
33
*/
34
typedef
enum
as_list_order_e {
35
/**
36
* List is not ordered. This is the default.
37
*/
38
AS_LIST_UNORDERED
= 0,
39
40
/**
41
* List is ordered.
42
*/
43
AS_LIST_ORDERED
= 1
44
}
as_list_order
;
34
typedef
enum
as_list_order_e {
{
…
};
45
46
/**
47
* Map storage order.
48
*
49
* @ingroup map_operations
50
*/
51
typedef
enum
as_map_order_e {
52
/**
53
* Map is not ordered. This is the default.
54
*/
55
AS_MAP_UNORDERED
= 0,
56
57
/**
58
* Order map by key.
59
*/
60
AS_MAP_KEY_ORDERED
= 1,
61
62
/**
63
* Order map by key, then value.
64
*/
65
AS_MAP_KEY_VALUE_ORDERED
= 3
66
}
as_map_order
;
51
typedef
enum
as_map_order_e {
{
…
};
67
68
/******************************************************************************
69
* FUNCTIONS
70
*****************************************************************************/
71
72
static
inline
uint32_t
73
as_list_order_to_flag
(
as_list_order
order,
bool
pad)
74
{
75
return
(order ==
AS_LIST_ORDERED
)? 0xc0 : pad ? 0x80 : 0x40;
76
}
73
as_list_order_to_flag
(
as_list_order
order,
bool
pad) {
…
}
77
78
static
inline
uint32_t
79
as_map_order_to_flag
(
as_map_order
order)
80
{
81
switch
(order) {
82
default
:
83
case
AS_MAP_UNORDERED
:
84
return
0x40;
85
86
case
AS_MAP_KEY_ORDERED
:
87
return
0x80;
88
89
case
AS_MAP_KEY_VALUE_ORDERED
:
90
return
0xc0;
91
}
92
}
79
as_map_order_to_flag
(
as_map_order
order) {
…
}
93
94
#ifdef __cplusplus
95
}
// end extern "C"
96
#endif
as_map_order_to_flag
static uint32_t as_map_order_to_flag(as_map_order order)
Definition
as_cdt_order.h:79
as_list_order_to_flag
static uint32_t as_list_order_to_flag(as_list_order order, bool pad)
Definition
as_cdt_order.h:73
as_std.h
as_list_order
as_list_order
Definition
as_cdt_order.h:34
AS_LIST_ORDERED
@ AS_LIST_ORDERED
Definition
as_cdt_order.h:43
AS_LIST_UNORDERED
@ AS_LIST_UNORDERED
Definition
as_cdt_order.h:38
as_map_order
as_map_order
Definition
as_cdt_order.h:51
AS_MAP_KEY_ORDERED
@ AS_MAP_KEY_ORDERED
Definition
as_cdt_order.h:60
AS_MAP_KEY_VALUE_ORDERED
@ AS_MAP_KEY_VALUE_ORDERED
Definition
as_cdt_order.h:65
AS_MAP_UNORDERED
@ AS_MAP_UNORDERED
Definition
as_cdt_order.h:55
aerospike
as_cdt_order.h
Generated on Tue Apr 1 2025 17:42:44 for Aerospike C Client API by
1.10.0