GPUdb C++ API  Version 7.2.2.4
show_wal.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_WAL_H__
7 #define __SHOW_WAL_H__
8 
9 namespace gpudb
10 {
19  {
24  tableNames(std::vector<std::string>()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
53  ShowWalRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
54  tableNames( tableNames_ ),
55  options( options_ )
56  {
57  }
58 
62  std::vector<std::string> tableNames;
63 
80  std::map<std::string, std::string> options;
81  };
82 } // end namespace gpudb
83 
84 namespace avro
85 {
86  template<> struct codec_traits<gpudb::ShowWalRequest>
87  {
88  static void encode(Encoder& e, const gpudb::ShowWalRequest& v)
89  {
90  ::avro::encode(e, v.tableNames);
91  ::avro::encode(e, v.options);
92  }
93 
94  static void decode(Decoder& d, gpudb::ShowWalRequest& v)
95  {
96  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
97  {
98  const std::vector<size_t> fo = rd->fieldOrder();
99 
100  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
101  {
102  switch (*it)
103  {
104  case 0:
105  ::avro::decode(d, v.tableNames);
106  break;
107 
108  case 1:
109  ::avro::decode(d, v.options);
110  break;
111 
112  default:
113  break;
114  }
115  }
116  }
117  else
118  {
119  ::avro::decode(d, v.tableNames);
120  ::avro::decode(d, v.options);
121  }
122  }
123  };
124 } // end namespace avro
125 
126 namespace gpudb
127 {
133  {
138  tableNames(std::vector<std::string>()),
139  sizes(std::vector<std::vector<int64_t> >()),
140  capacities(std::vector<int64_t>()),
141  uncommitted(std::vector<std::vector<int64_t> >()),
142  settings(std::vector<std::map<std::string, std::string> >()),
143  info(std::map<std::string, std::string>())
144  {
145  }
146 
150  std::vector<std::string> tableNames;
151 
155  std::vector<std::vector<int64_t> > sizes;
156 
160  std::vector<int64_t> capacities;
161 
165  std::vector<std::vector<int64_t> > uncommitted;
166 
170  std::vector<std::map<std::string, std::string> > settings;
171 
175  std::map<std::string, std::string> info;
176  };
177 } // end namespace gpudb
178 
179 namespace avro
180 {
181  template<> struct codec_traits<gpudb::ShowWalResponse>
182  {
183  static void encode(Encoder& e, const gpudb::ShowWalResponse& v)
184  {
185  ::avro::encode(e, v.tableNames);
186  ::avro::encode(e, v.sizes);
187  ::avro::encode(e, v.capacities);
188  ::avro::encode(e, v.uncommitted);
189  ::avro::encode(e, v.settings);
190  ::avro::encode(e, v.info);
191  }
192 
193  static void decode(Decoder& d, gpudb::ShowWalResponse& v)
194  {
195  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
196  {
197  const std::vector<size_t> fo = rd->fieldOrder();
198 
199  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
200  {
201  switch (*it)
202  {
203  case 0:
204  ::avro::decode(d, v.tableNames);
205  break;
206 
207  case 1:
208  ::avro::decode(d, v.sizes);
209  break;
210 
211  case 2:
212  ::avro::decode(d, v.capacities);
213  break;
214 
215  case 3:
216  ::avro::decode(d, v.uncommitted);
217  break;
218 
219  case 4:
220  ::avro::decode(d, v.settings);
221  break;
222 
223  case 5:
224  ::avro::decode(d, v.info);
225  break;
226 
227  default:
228  break;
229  }
230  }
231  }
232  else
233  {
234  ::avro::decode(d, v.tableNames);
235  ::avro::decode(d, v.sizes);
236  ::avro::decode(d, v.capacities);
237  ::avro::decode(d, v.uncommitted);
238  ::avro::decode(d, v.settings);
239  ::avro::decode(d, v.info);
240  }
241  }
242  };
243 } // end namespace avro
244 
245 #endif // __SHOW_WAL_H__
std::vector< std::string > tableNames
List of tables to query.
Definition: show_wal.h:62
std::vector< std::vector< int64_t > > uncommitted
List of number of uncommitted entries.
Definition: show_wal.h:165
ShowWalRequest()
Constructs a ShowWalRequest object with default parameters.
Definition: show_wal.h:23
std::vector< std::map< std::string, std::string > > settings
List of table wal settings.
Definition: show_wal.h:170
std::vector< int64_t > capacities
List of wal capacities.
Definition: show_wal.h:160
A set of results returned by GPUdb::showWal.
Definition: show_wal.h:132
std::map< std::string, std::string > options
Optional parameters.
Definition: show_wal.h:80
ShowWalRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowWalRequest object with the specified parameters.
Definition: show_wal.h:53
std::vector< std::string > tableNames
List of returned tables.
Definition: show_wal.h:150
ShowWalResponse()
Constructs a ShowWalResponse object with default parameters.
Definition: show_wal.h:137
A set of parameters for GPUdb::showWal.
Definition: show_wal.h:18
std::map< std::string, std::string > info
Additional information.
Definition: show_wal.h:175
std::vector< std::vector< int64_t > > sizes
List of current wal usage.
Definition: show_wal.h:155