GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
show_proc.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_PROC_H__
7 #define __SHOW_PROC_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
25  procName(std::string()),
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
50  ShowProcRequest(const std::string& procName_, const std::map<std::string, std::string>& options_):
51  procName( procName_ ),
52  options( options_ )
53  {
54  }
55 
56  std::string procName;
57  std::map<std::string, std::string> options;
58  };
59 }
60 
61 namespace avro
62 {
63  template<> struct codec_traits<gpudb::ShowProcRequest>
64  {
65  static void encode(Encoder& e, const gpudb::ShowProcRequest& v)
66  {
67  ::avro::encode(e, v.procName);
68  ::avro::encode(e, v.options);
69  }
70 
71  static void decode(Decoder& d, gpudb::ShowProcRequest& v)
72  {
73  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
74  {
75  const std::vector<size_t> fo = rd->fieldOrder();
76 
77  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
78  {
79  switch (*it)
80  {
81  case 0:
82  ::avro::decode(d, v.procName);
83  break;
84 
85  case 1:
86  ::avro::decode(d, v.options);
87  break;
88 
89  default:
90  break;
91  }
92  }
93  }
94  else
95  {
96  ::avro::decode(d, v.procName);
97  ::avro::decode(d, v.options);
98  }
99  }
100  };
101 }
102 
103 namespace gpudb
104 {
105 
113  {
114 
119  procNames(std::vector<std::string>()),
120  executionModes(std::vector<std::string>()),
121  files(std::vector<std::map<std::string, std::vector<uint8_t> > >()),
122  commands(std::vector<std::string>()),
123  args(std::vector<std::vector<std::string> >()),
124  options(std::vector<std::map<std::string, std::string> >())
125  {
126  }
127 
128  std::vector<std::string> procNames;
129  std::vector<std::string> executionModes;
130  std::vector<std::map<std::string, std::vector<uint8_t> > > files;
131  std::vector<std::string> commands;
132  std::vector<std::vector<std::string> > args;
133  std::vector<std::map<std::string, std::string> > options;
134  };
135 }
136 
137 namespace avro
138 {
139  template<> struct codec_traits<gpudb::ShowProcResponse>
140  {
141  static void encode(Encoder& e, const gpudb::ShowProcResponse& v)
142  {
143  ::avro::encode(e, v.procNames);
144  ::avro::encode(e, v.executionModes);
145  ::avro::encode(e, v.files);
146  ::avro::encode(e, v.commands);
147  ::avro::encode(e, v.args);
148  ::avro::encode(e, v.options);
149  }
150 
151  static void decode(Decoder& d, gpudb::ShowProcResponse& v)
152  {
153  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154  {
155  const std::vector<size_t> fo = rd->fieldOrder();
156 
157  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
158  {
159  switch (*it)
160  {
161  case 0:
162  ::avro::decode(d, v.procNames);
163  break;
164 
165  case 1:
166  ::avro::decode(d, v.executionModes);
167  break;
168 
169  case 2:
170  ::avro::decode(d, v.files);
171  break;
172 
173  case 3:
174  ::avro::decode(d, v.commands);
175  break;
176 
177  case 4:
178  ::avro::decode(d, v.args);
179  break;
180 
181  case 5:
182  ::avro::decode(d, v.options);
183  break;
184 
185  default:
186  break;
187  }
188  }
189  }
190  else
191  {
192  ::avro::decode(d, v.procNames);
193  ::avro::decode(d, v.executionModes);
194  ::avro::decode(d, v.files);
195  ::avro::decode(d, v.commands);
196  ::avro::decode(d, v.args);
197  ::avro::decode(d, v.options);
198  }
199  }
200  };
201 }
202 
203 #endif
std::vector< std::string > executionModes
Definition: show_proc.h:129
A set of input parameters for const.
Definition: show_proc.h:18
std::map< std::string, std::string > options
Definition: show_proc.h:57
std::vector< std::map< std::string, std::string > > options
Definition: show_proc.h:133
ShowProcRequest()
Constructs a ShowProcRequest object with default parameter values.
Definition: show_proc.h:24
std::string procName
Definition: show_proc.h:56
std::vector< std::string > procNames
Definition: show_proc.h:128
ShowProcRequest(const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a ShowProcRequest object with the specified parameters.
Definition: show_proc.h:50
std::vector< std::map< std::string, std::vector< uint8_t > > > files
Definition: show_proc.h:130
std::vector< std::vector< std::string > > args
Definition: show_proc.h:132
A set of output parameters for const.
Definition: show_proc.h:112
ShowProcResponse()
Constructs a ShowProcResponse object with default parameter values.
Definition: show_proc.h:118
std::vector< std::string > commands
Definition: show_proc.h:131