6 #ifndef __ALTER_TABLE_H__
7 #define __ALTER_TABLE_H__
83 options(std::map<std::string, std::string>())
384 AlterTableRequest(
const std::string& tableName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
401 template<>
struct codec_traits<gpudb::AlterTableRequest>
406 ::avro::encode(e, v.
action);
407 ::avro::encode(e, v.
value);
413 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
415 const std::vector<size_t> fo = rd->fieldOrder();
417 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
426 ::avro::decode(d, v.
action);
430 ::avro::decode(d, v.
value);
445 ::avro::decode(d, v.
action);
446 ::avro::decode(d, v.
value);
526 value(std::string()),
529 properties(std::map<std::string, std::vector<std::string> >()),
530 label(std::string()),
531 info(std::map<std::string, std::string>())
542 std::map<std::string, std::string>
info;
548 template<>
struct codec_traits<gpudb::AlterTableResponse>
553 ::avro::encode(e, v.
action);
554 ::avro::encode(e, v.
value);
555 ::avro::encode(e, v.
typeId);
558 ::avro::encode(e, v.
label);
559 ::avro::encode(e, v.
info);
564 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
566 const std::vector<size_t> fo = rd->fieldOrder();
568 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
577 ::avro::decode(d, v.
action);
581 ::avro::decode(d, v.
value);
585 ::avro::decode(d, v.
typeId);
597 ::avro::decode(d, v.
label);
601 ::avro::decode(d, v.
info);
612 ::avro::decode(d, v.
action);
613 ::avro::decode(d, v.
value);
614 ::avro::decode(d, v.
typeId);
617 ::avro::decode(d, v.
label);
618 ::avro::decode(d, v.
info);
A set of output parameters for const.
AlterTableResponse()
Constructs an AlterTableResponse object with default parameter values.
std::map< std::string, std::string > options
std::map< std::string, std::vector< std::string > > properties
std::map< std::string, std::string > info
A set of input parameters for const.
AlterTableRequest()
Constructs an AlterTableRequest object with default parameter values.
std::string typeDefinition
AlterTableRequest(const std::string &tableName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableRequest object with the specified parameters.