GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_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 __DELETE_PROC_H__
7 #define __DELETE_PROC_H__
8 
9 namespace gpudb
10 {
11 
20  {
21 
26  procName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
39  DeleteProcRequest(const std::string& procName_, const std::map<std::string, std::string>& options_):
40  procName( procName_ ),
41  options( options_ )
42  {
43  }
44 
45  std::string procName;
46  std::map<std::string, std::string> options;
47  };
48 }
49 
50 namespace avro
51 {
52  template<> struct codec_traits<gpudb::DeleteProcRequest>
53  {
54  static void encode(Encoder& e, const gpudb::DeleteProcRequest& v)
55  {
56  ::avro::encode(e, v.procName);
57  ::avro::encode(e, v.options);
58  }
59 
60  static void decode(Decoder& d, gpudb::DeleteProcRequest& v)
61  {
62  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
63  {
64  const std::vector<size_t> fo = rd->fieldOrder();
65 
66  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
67  {
68  switch (*it)
69  {
70  case 0:
71  ::avro::decode(d, v.procName);
72  break;
73 
74  case 1:
75  ::avro::decode(d, v.options);
76  break;
77 
78  default:
79  break;
80  }
81  }
82  }
83  else
84  {
85  ::avro::decode(d, v.procName);
86  ::avro::decode(d, v.options);
87  }
88  }
89  };
90 }
91 
92 namespace gpudb
93 {
94 
103  {
104 
110  procName(std::string()),
111  info(std::map<std::string, std::string>())
112  {
113  }
114 
115  std::string procName;
116  std::map<std::string, std::string> info;
117  };
118 }
119 
120 namespace avro
121 {
122  template<> struct codec_traits<gpudb::DeleteProcResponse>
123  {
124  static void encode(Encoder& e, const gpudb::DeleteProcResponse& v)
125  {
126  ::avro::encode(e, v.procName);
127  ::avro::encode(e, v.info);
128  }
129 
130  static void decode(Decoder& d, gpudb::DeleteProcResponse& v)
131  {
132  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
133  {
134  const std::vector<size_t> fo = rd->fieldOrder();
135 
136  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
137  {
138  switch (*it)
139  {
140  case 0:
141  ::avro::decode(d, v.procName);
142  break;
143 
144  case 1:
145  ::avro::decode(d, v.info);
146  break;
147 
148  default:
149  break;
150  }
151  }
152  }
153  else
154  {
155  ::avro::decode(d, v.procName);
156  ::avro::decode(d, v.info);
157  }
158  }
159  };
160 }
161 
162 #endif
DeleteProcRequest(const std::string &procName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteProcRequest object with the specified parameters.
Definition: delete_proc.h:39
DeleteProcResponse()
Constructs a DeleteProcResponse object with default parameter values.
Definition: delete_proc.h:109
std::map< std::string, std::string > info
Definition: delete_proc.h:116
std::map< std::string, std::string > options
Definition: delete_proc.h:46
DeleteProcRequest()
Constructs a DeleteProcRequest object with default parameter values.
Definition: delete_proc.h:25
A set of input parameters for const.
Definition: delete_proc.h:19
A set of output parameters for const.
Definition: delete_proc.h:102