GPUdb C++ API  Version 5.2.0.0
show_system_properties.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_SYSTEM_PROPERTIES_H__
7 #define __SHOW_SYSTEM_PROPERTIES_H__
8 
9 namespace gpudb
10 {
11 
21  {
22 
28  options(std::map<std::string, std::string>())
29  {
30  }
31 
45  ShowSystemPropertiesRequest(const std::map<std::string, std::string>& options):
46  options(options)
47  {
48  }
49 
50  std::map<std::string, std::string> options;
51  };
52 }
53 
54 namespace avro
55 {
56  template<> struct codec_traits<gpudb::ShowSystemPropertiesRequest>
57  {
58  static void encode(Encoder& e, const gpudb::ShowSystemPropertiesRequest& v)
59  {
60  ::avro::encode(e, v.options);
61  }
62 
63  static void decode(Decoder& d, gpudb::ShowSystemPropertiesRequest& v)
64  {
65  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
66  {
67  const std::vector<size_t> fo = rd->fieldOrder();
68 
69  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
70  {
71  switch (*it)
72  {
73  case 0:
74  ::avro::decode(d, v.options);
75  break;
76 
77  default:
78  break;
79  }
80  }
81  }
82  else
83  {
84  ::avro::decode(d, v.options);
85  }
86  }
87  };
88 }
89 
90 namespace gpudb
91 {
92 
102  {
103 
109  propertyMap(std::map<std::string, std::string>())
110  {
111  }
112 
113  std::map<std::string, std::string> propertyMap;
114  };
115 }
116 
117 namespace avro
118 {
119  template<> struct codec_traits<gpudb::ShowSystemPropertiesResponse>
120  {
121  static void encode(Encoder& e, const gpudb::ShowSystemPropertiesResponse& v)
122  {
123  ::avro::encode(e, v.propertyMap);
124  }
125 
126  static void decode(Decoder& d, gpudb::ShowSystemPropertiesResponse& v)
127  {
128  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
129  {
130  const std::vector<size_t> fo = rd->fieldOrder();
131 
132  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
133  {
134  switch (*it)
135  {
136  case 0:
137  ::avro::decode(d, v.propertyMap);
138  break;
139 
140  default:
141  break;
142  }
143  }
144  }
145  else
146  {
147  ::avro::decode(d, v.propertyMap);
148  }
149  }
150  };
151 }
152 
153 #endif
A set of output parameters for showSystemProperties(const ShowSystemPropertiesRequest&) const...
ShowSystemPropertiesRequest(const std::map< std::string, std::string > &options)
Constructs a ShowSystemPropertiesRequest object with the specified parameters.
A set of input parameters for showSystemProperties(const ShowSystemPropertiesRequest&) const...
std::map< std::string, std::string > options
std::map< std::string, std::string > propertyMap
ShowSystemPropertiesResponse()
Constructs a ShowSystemPropertiesResponse object with default parameter values.
ShowSystemPropertiesRequest()
Constructs a ShowSystemPropertiesRequest object with default parameter values.