GPUdb C++ API  Version 7.2.2.4
admin_ha_refresh.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 __ADMIN_HA_REFRESH_H__
7 #define __ADMIN_HA_REFRESH_H__
8 
9 namespace gpudb
10 {
21  {
26  options(std::map<std::string, std::string>())
27  {
28  }
29 
37  AdminHaRefreshRequest(const std::map<std::string, std::string>& options_):
38  options( options_ )
39  {
40  }
41 
45  std::map<std::string, std::string> options;
46  };
47 } // end namespace gpudb
48 
49 namespace avro
50 {
51  template<> struct codec_traits<gpudb::AdminHaRefreshRequest>
52  {
53  static void encode(Encoder& e, const gpudb::AdminHaRefreshRequest& v)
54  {
55  ::avro::encode(e, v.options);
56  }
57 
58  static void decode(Decoder& d, gpudb::AdminHaRefreshRequest& v)
59  {
60  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
61  {
62  const std::vector<size_t> fo = rd->fieldOrder();
63 
64  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
65  {
66  switch (*it)
67  {
68  case 0:
69  ::avro::decode(d, v.options);
70  break;
71 
72  default:
73  break;
74  }
75  }
76  }
77  else
78  {
79  ::avro::decode(d, v.options);
80  }
81  }
82  };
83 } // end namespace avro
84 
85 namespace gpudb
86 {
93  {
98  info(std::map<std::string, std::string>())
99  {
100  }
101 
105  std::map<std::string, std::string> info;
106  };
107 } // end namespace gpudb
108 
109 namespace avro
110 {
111  template<> struct codec_traits<gpudb::AdminHaRefreshResponse>
112  {
113  static void encode(Encoder& e, const gpudb::AdminHaRefreshResponse& v)
114  {
115  ::avro::encode(e, v.info);
116  }
117 
118  static void decode(Decoder& d, gpudb::AdminHaRefreshResponse& v)
119  {
120  if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
121  {
122  const std::vector<size_t> fo = rd->fieldOrder();
123 
124  for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
125  {
126  switch (*it)
127  {
128  case 0:
129  ::avro::decode(d, v.info);
130  break;
131 
132  default:
133  break;
134  }
135  }
136  }
137  else
138  {
139  ::avro::decode(d, v.info);
140  }
141  }
142  };
143 } // end namespace avro
144 
145 #endif // __ADMIN_HA_REFRESH_H__
AdminHaRefreshRequest()
Constructs an AdminHaRefreshRequest object with default parameters.
AdminHaRefreshResponse()
Constructs an AdminHaRefreshResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::adminHaRefresh.
std::map< std::string, std::string > info
Additional information.
A set of results returned by GPUdb::adminHaRefresh.
AdminHaRefreshRequest(const std::map< std::string, std::string > &options_)
Constructs an AdminHaRefreshRequest object with the specified parameters.