1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
use std::collections::HashMap;
use std::net::IpAddr;
use uuid::Uuid;
use types::{AsRustType, CBytes, AsRust};
use frame::frame_result::{ColTypeOption, ColTypeOptionValue, ColType};
use types::data_serialization_types::*;
use types::list::List;
use types::udt::UDT;
use error::{Error, Result};
#[derive(Debug)]
pub struct Map {
metadata: ColTypeOption,
data: Vec<(CBytes, CBytes)>,
}
impl Map {
pub fn new(data: Vec<(CBytes, CBytes)>, meta: ColTypeOption) -> Map {
Map {
metadata: meta,
data: data,
}
}
}
impl AsRust for Map {}
map_as_rust!(K Vec K < K u8 K >, V Vec V < V u8 V >);
map_as_rust!(K Vec K < K u8 K >, V String);
map_as_rust!(K Vec K < K u8 K >, V bool);
map_as_rust!(K Vec K < K u8 K >, V i64);
map_as_rust!(K Vec K < K u8 K >, V i32);
map_as_rust!(K Vec K < K u8 K >, V i16);
map_as_rust!(K Vec K < K u8 K >, V i8);
map_as_rust!(K Vec K < K u8 K >, V f64);
map_as_rust!(K Vec K < K u8 K >, V f32);
map_as_rust!(K Vec K < K u8 K >, V IpAddr);
map_as_rust!(K Vec K < K u8 K >, V Uuid);
map_as_rust!(K Vec K < K u8 K >, V List);
map_as_rust!(K Vec K < K u8 K >, V Map);
map_as_rust!(K Vec K < K u8 K >, V UDT);
map_as_rust!(K String, V Vec V < V u8 V >);
map_as_rust!(K String, V String);
map_as_rust!(K String, V bool);
map_as_rust!(K String, V i64);
map_as_rust!(K String, V i32);
map_as_rust!(K String, V i16);
map_as_rust!(K String, V i8);
map_as_rust!(K String, V f64);
map_as_rust!(K String, V f32);
map_as_rust!(K String, V IpAddr);
map_as_rust!(K String, V Uuid);
map_as_rust!(K String, V List);
map_as_rust!(K String, V Map);
map_as_rust!(K String, V UDT);
map_as_rust!(K bool, V Vec V < V u8 V >);
map_as_rust!(K bool, V String);
map_as_rust!(K bool, V bool);
map_as_rust!(K bool, V i64);
map_as_rust!(K bool, V i32);
map_as_rust!(K bool, V i16);
map_as_rust!(K bool, V i8);
map_as_rust!(K bool, V f64);
map_as_rust!(K bool, V f32);
map_as_rust!(K bool, V IpAddr);
map_as_rust!(K bool, V Uuid);
map_as_rust!(K bool, V List);
map_as_rust!(K bool, V Map);
map_as_rust!(K bool, V UDT);
map_as_rust!(K i64, V Vec V < V u8 V >);
map_as_rust!(K i64, V String);
map_as_rust!(K i64, V bool);
map_as_rust!(K i64, V i64);
map_as_rust!(K i64, V i32);
map_as_rust!(K i64, V i16);
map_as_rust!(K i64, V i8);
map_as_rust!(K i64, V f64);
map_as_rust!(K i64, V f32);
map_as_rust!(K i64, V IpAddr);
map_as_rust!(K i64, V Uuid);
map_as_rust!(K i64, V List);
map_as_rust!(K i64, V Map);
map_as_rust!(K i64, V UDT);
map_as_rust!(K i32, V Vec V < V u8 V >);
map_as_rust!(K i32, V String);
map_as_rust!(K i32, V bool);
map_as_rust!(K i32, V i64);
map_as_rust!(K i32, V i32);
map_as_rust!(K i32, V i16);
map_as_rust!(K i32, V i8);
map_as_rust!(K i32, V f64);
map_as_rust!(K i32, V f32);
map_as_rust!(K i32, V IpAddr);
map_as_rust!(K i32, V Uuid);
map_as_rust!(K i32, V List);
map_as_rust!(K i32, V Map);
map_as_rust!(K i32, V UDT);
map_as_rust!(K i16, V Vec V < V u8 V >);
map_as_rust!(K i16, V String);
map_as_rust!(K i16, V bool);
map_as_rust!(K i16, V i64);
map_as_rust!(K i16, V i32);
map_as_rust!(K i16, V i16);
map_as_rust!(K i16, V i8);
map_as_rust!(K i16, V f64);
map_as_rust!(K i16, V f32);
map_as_rust!(K i16, V IpAddr);
map_as_rust!(K i16, V Uuid);
map_as_rust!(K i16, V List);
map_as_rust!(K i16, V Map);
map_as_rust!(K i16, V UDT);
map_as_rust!(K i8, V Vec V < V u8 V >);
map_as_rust!(K i8, V String);
map_as_rust!(K i8, V bool);
map_as_rust!(K i8, V i64);
map_as_rust!(K i8, V i32);
map_as_rust!(K i8, V i16);
map_as_rust!(K i8, V i8);
map_as_rust!(K i8, V f64);
map_as_rust!(K i8, V f32);
map_as_rust!(K i8, V IpAddr);
map_as_rust!(K i8, V Uuid);
map_as_rust!(K i8, V List);
map_as_rust!(K i8, V Map);
map_as_rust!(K i8, V UDT);
map_as_rust!(K IpAddr, V Vec V < V u8 V >);
map_as_rust!(K IpAddr, V String);
map_as_rust!(K IpAddr, V bool);
map_as_rust!(K IpAddr, V i64);
map_as_rust!(K IpAddr, V i32);
map_as_rust!(K IpAddr, V i16);
map_as_rust!(K IpAddr, V i8);
map_as_rust!(K IpAddr, V f64);
map_as_rust!(K IpAddr, V f32);
map_as_rust!(K IpAddr, V IpAddr);
map_as_rust!(K IpAddr, V Uuid);
map_as_rust!(K IpAddr, V List);
map_as_rust!(K IpAddr, V Map);
map_as_rust!(K IpAddr, V UDT);
map_as_rust!(K Uuid, V Vec V < V u8 V >);
map_as_rust!(K Uuid, V String);
map_as_rust!(K Uuid, V bool);
map_as_rust!(K Uuid, V i64);
map_as_rust!(K Uuid, V i32);
map_as_rust!(K Uuid, V i16);
map_as_rust!(K Uuid, V i8);
map_as_rust!(K Uuid, V f64);
map_as_rust!(K Uuid, V f32);
map_as_rust!(K Uuid, V IpAddr);
map_as_rust!(K Uuid, V Uuid);
map_as_rust!(K Uuid, V List);
map_as_rust!(K Uuid, V Map);
map_as_rust!(K Uuid, V UDT);