GPUdb C++ API  Version 7.2.2.4
delete_proc.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 __DELETE_PROC_H__
7 #define __DELETE_PROC_H__
8 
9 namespace gpudb
10 {
19  {
24  procName(std::string()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
37  DeleteProcRequest(const std::string& procName_, const std::map<std::string, std::string>& options_):
38  procName( procName_ ),
39  options( options_ )
40  {
41  }
42 
47  std::string procName;
48 
52  std::map<std::string, std::string> options;
53  };
54 } // end namespace gpudb
55 
56 namespace avro
57 {
58  template<> struct codec_traits<gpudb::DeleteProcRequest>
59  {
60  static void encode(Encoder& e, const gpudb::DeleteProcRequest& v)
61  {
62  ::avro::encode(e, v.procName);
63  ::avro::encode(e, v.options);
64  }
65 
66  static void decode(Decoder& d, gpudb::DeleteProcRequest& 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.procName);
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.procName);
92  ::avro::decode(d, v.options);
93  }
94  }
95  };
96 } // end namespace avro
97 
98 namespace gpudb
99 {
105  {
110  procName(std::string()),
111  info(std::map<std::string, std::string>())
112  {
113  }
114 
118  std::string procName;
119 
123  std::map<std::string, std::string> info;
124  };
125 } // end namespace gpudb
126 
127 namespace avro
128 {
129  template<> struct codec_traits<gpudb::DeleteProcResponse>
130  {
131  static void encode(Encoder& e, const gpudb::DeleteProcResponse& v)
132  {
133  ::avro::encode(e, v.procName);
134  ::avro::encode(e, v.info);
135  }
136 
137  static void decode(Decoder& d, gpudb::DeleteProcResponse& v)
138  {
139  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
140  {
141  const std::vector<size_t> fo = rd->fieldOrder();
142 
143  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
144  {
145  switch (*it)
146  {
147  case 0:
148  ::avro::decode(d, v.procName);
149  break;
150 
151  case 1:
152  ::avro::decode(d, v.info);
153  break;
154 
155  default:
156  break;
157  }
158  }
159  }
160  else
161  {
162  ::avro::decode(d, v.procName);
163  ::avro::decode(d, v.info);
164  }
165  }
166  };
167 } // end namespace avro
168 
169 #endif // __DELETE_PROC_H__
std::string procName
Name of the proc to be deleted.
Definition: delete_proc.h:47
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:37
std::string procName
Value of procName.
Definition: delete_proc.h:118
DeleteProcResponse()
Constructs a DeleteProcResponse object with default parameters.
Definition: delete_proc.h:109
std::map< std::string, std::string > info
Additional information.
Definition: delete_proc.h:123
std::map< std::string, std::string > options
Optional parameters.
Definition: delete_proc.h:52
DeleteProcRequest()
Constructs a DeleteProcRequest object with default parameters.
Definition: delete_proc.h:23
A set of parameters for GPUdb::deleteProc.
Definition: delete_proc.h:18
A set of results returned by GPUdb::deleteProc.
Definition: delete_proc.h:104