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