6 #ifndef __CREATE_TYPE_H__
7 #define __CREATE_TYPE_H__
66 properties(std::map<std::string, std::vector<std::string> >()),
67 options(std::map<std::string, std::string>())
273 CreateTypeRequest(
const std::string& typeDefinition_,
const std::string& label_,
const std::map<std::string, std::vector<std::string> >& properties_,
const std::map<std::string, std::string>& options_):
290 template<>
struct codec_traits<gpudb::CreateTypeRequest>
295 ::avro::encode(e, v.
label);
302 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
304 const std::vector<size_t> fo = rd->fieldOrder();
306 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
315 ::avro::decode(d, v.
label);
334 ::avro::decode(d, v.
label);
400 label(std::string()),
401 properties(std::map<std::string, std::vector<std::string> >()),
402 info(std::map<std::string, std::string>())
410 std::map<std::string, std::string>
info;
416 template<>
struct codec_traits<gpudb::CreateTypeResponse>
420 ::avro::encode(e, v.
typeId);
422 ::avro::encode(e, v.
label);
424 ::avro::encode(e, v.
info);
429 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
431 const std::vector<size_t> fo = rd->fieldOrder();
433 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
438 ::avro::decode(d, v.
typeId);
446 ::avro::decode(d, v.
label);
454 ::avro::decode(d, v.
info);
464 ::avro::decode(d, v.
typeId);
466 ::avro::decode(d, v.
label);
468 ::avro::decode(d, v.
info);
std::map< std::string, std::vector< std::string > > properties
std::string typeDefinition
std::map< std::string, std::string > info
std::string typeDefinition
CreateTypeRequest(const std::string &typeDefinition_, const std::string &label_, const std::map< std::string, std::vector< std::string > > &properties_, const std::map< std::string, std::string > &options_)
Constructs a CreateTypeRequest object with the specified parameters.
A set of input parameters for const.
A set of output parameters for const.
CreateTypeRequest()
Constructs a CreateTypeRequest object with default parameter values.
std::map< std::string, std::string > options
CreateTypeResponse()
Constructs a CreateTypeResponse object with default parameter values.
std::map< std::string, std::vector< std::string > > properties