GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
delete_graph.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_GRAPH_H__
7 #define __DELETE_GRAPH_H__
8 
9 namespace gpudb
10 {
11 
19  {
20 
26  graphName(std::string()),
27  options(std::map<std::string, std::string>())
28  {
29  }
30 
53  DeleteGraphRequest(const std::string& graphName_, const std::map<std::string, std::string>& options_):
54  graphName( graphName_ ),
55  options( options_ )
56  {
57  }
58 
59  std::string graphName;
60  std::map<std::string, std::string> options;
61  };
62 }
63 
64 namespace avro
65 {
66  template<> struct codec_traits<gpudb::DeleteGraphRequest>
67  {
68  static void encode(Encoder& e, const gpudb::DeleteGraphRequest& v)
69  {
70  ::avro::encode(e, v.graphName);
71  ::avro::encode(e, v.options);
72  }
73 
74  static void decode(Decoder& d, gpudb::DeleteGraphRequest& v)
75  {
76  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
77  {
78  const std::vector<size_t> fo = rd->fieldOrder();
79 
80  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
81  {
82  switch (*it)
83  {
84  case 0:
85  ::avro::decode(d, v.graphName);
86  break;
87 
88  case 1:
89  ::avro::decode(d, v.options);
90  break;
91 
92  default:
93  break;
94  }
95  }
96  }
97  else
98  {
99  ::avro::decode(d, v.graphName);
100  ::avro::decode(d, v.options);
101  }
102  }
103  };
104 }
105 
106 namespace gpudb
107 {
108 
116  {
117 
123  result(bool()),
124  info(std::map<std::string, std::string>())
125  {
126  }
127 
128  bool result;
129  std::map<std::string, std::string> info;
130  };
131 }
132 
133 namespace avro
134 {
135  template<> struct codec_traits<gpudb::DeleteGraphResponse>
136  {
137  static void encode(Encoder& e, const gpudb::DeleteGraphResponse& v)
138  {
139  ::avro::encode(e, v.result);
140  ::avro::encode(e, v.info);
141  }
142 
143  static void decode(Decoder& d, gpudb::DeleteGraphResponse& v)
144  {
145  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
146  {
147  const std::vector<size_t> fo = rd->fieldOrder();
148 
149  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
150  {
151  switch (*it)
152  {
153  case 0:
154  ::avro::decode(d, v.result);
155  break;
156 
157  case 1:
158  ::avro::decode(d, v.info);
159  break;
160 
161  default:
162  break;
163  }
164  }
165  }
166  else
167  {
168  ::avro::decode(d, v.result);
169  ::avro::decode(d, v.info);
170  }
171  }
172  };
173 }
174 
175 #endif
std::map< std::string, std::string > options
Definition: delete_graph.h:60
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:53
DeleteGraphResponse()
Constructs a DeleteGraphResponse object with default parameter values.
Definition: delete_graph.h:122
std::map< std::string, std::string > info
Definition: delete_graph.h:129
A set of input parameters for const.
Definition: delete_graph.h:18
A set of output parameters for const.
Definition: delete_graph.h:115
DeleteGraphRequest()
Constructs a DeleteGraphRequest object with default parameter values.
Definition: delete_graph.h:25