GPUdb C++ API  Version 7.1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
show_statistics.h
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the GPUdb schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 #ifndef __SHOW_STATISTICS_H__
7 #define __SHOW_STATISTICS_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  tableNames(std::vector<std::string>()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
45  ShowStatisticsRequest(const std::vector<std::string>& tableNames_, const std::map<std::string, std::string>& options_):
46  tableNames( tableNames_ ),
47  options( options_ )
48  {
49  }
50 
51  std::vector<std::string> tableNames;
52  std::map<std::string, std::string> options;
53  };
54 }
55 
56 namespace avro
57 {
58  template<> struct codec_traits<gpudb::ShowStatisticsRequest>
59  {
60  static void encode(Encoder& e, const gpudb::ShowStatisticsRequest& v)
61  {
62  ::avro::encode(e, v.tableNames);
63  ::avro::encode(e, v.options);
64  }
65 
66  static void decode(Decoder& d, gpudb::ShowStatisticsRequest& v)
67  {
68  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
69  {
70  const std::vector<size_t> fo = rd->fieldOrder();
71 
72  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
73  {
74  switch (*it)
75  {
76  case 0:
77  ::avro::decode(d, v.tableNames);
78  break;
79 
80  case 1:
81  ::avro::decode(d, v.options);
82  break;
83 
84  default:
85  break;
86  }
87  }
88  }
89  else
90  {
91  ::avro::decode(d, v.tableNames);
92  ::avro::decode(d, v.options);
93  }
94  }
95  };
96 }
97 
98 namespace gpudb
99 {
100 
108  {
109 
115  tableNames(std::vector<std::string>()),
116  stastisticsMap(std::vector<std::vector<std::map<std::string, std::string> > >()),
117  info(std::map<std::string, std::string>())
118  {
119  }
120 
121  std::vector<std::string> tableNames;
122  std::vector<std::vector<std::map<std::string, std::string> > > stastisticsMap;
123  std::map<std::string, std::string> info;
124  };
125 }
126 
127 namespace avro
128 {
129  template<> struct codec_traits<gpudb::ShowStatisticsResponse>
130  {
131  static void encode(Encoder& e, const gpudb::ShowStatisticsResponse& v)
132  {
133  ::avro::encode(e, v.tableNames);
134  ::avro::encode(e, v.stastisticsMap);
135  ::avro::encode(e, v.info);
136  }
137 
138  static void decode(Decoder& d, gpudb::ShowStatisticsResponse& v)
139  {
140  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
141  {
142  const std::vector<size_t> fo = rd->fieldOrder();
143 
144  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
145  {
146  switch (*it)
147  {
148  case 0:
149  ::avro::decode(d, v.tableNames);
150  break;
151 
152  case 1:
153  ::avro::decode(d, v.stastisticsMap);
154  break;
155 
156  case 2:
157  ::avro::decode(d, v.info);
158  break;
159 
160  default:
161  break;
162  }
163  }
164  }
165  else
166  {
167  ::avro::decode(d, v.tableNames);
168  ::avro::decode(d, v.stastisticsMap);
169  ::avro::decode(d, v.info);
170  }
171  }
172  };
173 }
174 
175 #endif
A set of input parameters for const.
ShowStatisticsRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ShowStatisticsRequest object with the specified parameters.
std::vector< std::string > tableNames
std::vector< std::vector< std::map< std::string, std::string > > > stastisticsMap
ShowStatisticsRequest()
Constructs a ShowStatisticsRequest object with default parameter values.
ShowStatisticsResponse()
Constructs a ShowStatisticsResponse object with default parameter values.
std::map< std::string, std::string > options
A set of output parameters for const.
std::vector< std::string > tableNames
std::map< std::string, std::string > info