GPUdb C++ API  Version 7.2.2.4
delete_graph.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_GRAPH_H__
7 #define __DELETE_GRAPH_H__
8 
9 namespace gpudb
10 {
19  {
24  graphName(std::string()),
25  options(std::map<std::string, std::string>())
26  {
27  }
28 
64  DeleteGraphRequest(const std::string& graphName_, const std::map<std::string, std::string>& options_):
65  graphName( graphName_ ),
66  options( options_ )
67  {
68  }
69 
73  std::string graphName;
74 
98  std::map<std::string, std::string> options;
99  };
100 } // end namespace gpudb
101 
102 namespace avro
103 {
104  template<> struct codec_traits<gpudb::DeleteGraphRequest>
105  {
106  static void encode(Encoder& e, const gpudb::DeleteGraphRequest& v)
107  {
108  ::avro::encode(e, v.graphName);
109  ::avro::encode(e, v.options);
110  }
111 
112  static void decode(Decoder& d, gpudb::DeleteGraphRequest& v)
113  {
114  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
115  {
116  const std::vector<size_t> fo = rd->fieldOrder();
117 
118  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
119  {
120  switch (*it)
121  {
122  case 0:
123  ::avro::decode(d, v.graphName);
124  break;
125 
126  case 1:
127  ::avro::decode(d, v.options);
128  break;
129 
130  default:
131  break;
132  }
133  }
134  }
135  else
136  {
137  ::avro::decode(d, v.graphName);
138  ::avro::decode(d, v.options);
139  }
140  }
141  };
142 } // end namespace avro
143 
144 namespace gpudb
145 {
152  {
157  result(bool()),
158  info(std::map<std::string, std::string>())
159  {
160  }
161 
165  bool result;
166 
170  std::map<std::string, std::string> info;
171  };
172 } // end namespace gpudb
173 
174 namespace avro
175 {
176  template<> struct codec_traits<gpudb::DeleteGraphResponse>
177  {
178  static void encode(Encoder& e, const gpudb::DeleteGraphResponse& v)
179  {
180  ::avro::encode(e, v.result);
181  ::avro::encode(e, v.info);
182  }
183 
184  static void decode(Decoder& d, gpudb::DeleteGraphResponse& v)
185  {
186  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
187  {
188  const std::vector<size_t> fo = rd->fieldOrder();
189 
190  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
191  {
192  switch (*it)
193  {
194  case 0:
195  ::avro::decode(d, v.result);
196  break;
197 
198  case 1:
199  ::avro::decode(d, v.info);
200  break;
201 
202  default:
203  break;
204  }
205  }
206  }
207  else
208  {
209  ::avro::decode(d, v.result);
210  ::avro::decode(d, v.info);
211  }
212  }
213  };
214 } // end namespace avro
215 
216 #endif // __DELETE_GRAPH_H__
std::map< std::string, std::string > options
Optional parameters.
Definition: delete_graph.h:98
DeleteGraphRequest(const std::string &graphName_, const std::map< std::string, std::string > &options_)
Constructs a DeleteGraphRequest object with the specified parameters.
Definition: delete_graph.h:64
DeleteGraphResponse()
Constructs a DeleteGraphResponse object with default parameters.
Definition: delete_graph.h:156
std::map< std::string, std::string > info
Additional information.
Definition: delete_graph.h:170
std::string graphName
Name of the graph to be deleted.
Definition: delete_graph.h:73
A set of parameters for GPUdb::deleteGraph.
Definition: delete_graph.h:18
bool result
Indicates a successful deletion.
Definition: delete_graph.h:165
A set of results returned by GPUdb::deleteGraph.
Definition: delete_graph.h:151
DeleteGraphRequest()
Constructs a DeleteGraphRequest object with default parameters.
Definition: delete_graph.h:23