6 #ifndef __SHOW_TYPES_H__
7 #define __SHOW_TYPES_H__
30 options(std::map<std::string, std::string>())
54 ShowTypesRequest(
const std::string& typeId_,
const std::string& label_,
const std::map<std::string, std::string>& options_):
63 std::map<std::string, std::string>
options;
69 template<>
struct codec_traits<gpudb::ShowTypesRequest>
73 ::avro::encode(e, v.
typeId);
74 ::avro::encode(e, v.
label);
80 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
82 const std::vector<size_t> fo = rd->fieldOrder();
84 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
89 ::avro::decode(d, v.
typeId);
93 ::avro::decode(d, v.
label);
107 ::avro::decode(d, v.
typeId);
108 ::avro::decode(d, v.
label);
134 typeIds(std::vector<std::string>()),
136 labels(std::vector<std::string>()),
137 properties(std::vector<std::map<std::string, std::vector<std::string> > >()),
138 info(std::map<std::string, std::string>())
145 std::vector<std::map<std::string, std::vector<std::string> > >
properties;
146 std::map<std::string, std::string>
info;
152 template<>
struct codec_traits<gpudb::ShowTypesResponse>
158 ::avro::encode(e, v.
labels);
160 ::avro::encode(e, v.
info);
165 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
167 const std::vector<size_t> fo = rd->fieldOrder();
169 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
182 ::avro::decode(d, v.
labels);
190 ::avro::decode(d, v.
info);
202 ::avro::decode(d, v.
labels);
204 ::avro::decode(d, v.
info);
A set of output parameters for const.
std::map< std::string, std::string > options
ShowTypesResponse()
Constructs a ShowTypesResponse object with default parameter values.
std::vector< std::string > labels
ShowTypesRequest()
Constructs a ShowTypesRequest object with default parameter values.
ShowTypesRequest(const std::string &typeId_, const std::string &label_, const std::map< std::string, std::string > &options_)
Constructs a ShowTypesRequest object with the specified parameters.
std::vector< std::string > typeSchemas
A set of input parameters for const.
std::vector< std::string > typeIds
std::map< std::string, std::string > info
std::vector< std::map< std::string, std::vector< std::string > > > properties