6 #ifndef __ALTER_TABLE_H__
7 #define __ALTER_TABLE_H__
81 options(std::map<std::string, std::string>())
440 AlterTableRequest(
const std::string& tableName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
457 template<>
struct codec_traits<gpudb::AlterTableRequest>
462 ::avro::encode(e, v.
action);
463 ::avro::encode(e, v.
value);
469 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
471 const std::vector<size_t> fo = rd->fieldOrder();
473 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
482 ::avro::decode(d, v.
action);
486 ::avro::decode(d, v.
value);
501 ::avro::decode(d, v.
action);
502 ::avro::decode(d, v.
value);
580 value(std::string()),
583 properties(std::map<std::string, std::vector<std::string> >()),
584 label(std::string()),
585 info(std::map<std::string, std::string>())
596 std::map<std::string, std::string>
info;
602 template<>
struct codec_traits<gpudb::AlterTableResponse>
607 ::avro::encode(e, v.
action);
608 ::avro::encode(e, v.
value);
609 ::avro::encode(e, v.
typeId);
612 ::avro::encode(e, v.
label);
613 ::avro::encode(e, v.
info);
618 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
620 const std::vector<size_t> fo = rd->fieldOrder();
622 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
631 ::avro::decode(d, v.
action);
635 ::avro::decode(d, v.
value);
639 ::avro::decode(d, v.
typeId);
651 ::avro::decode(d, v.
label);
655 ::avro::decode(d, v.
info);
666 ::avro::decode(d, v.
action);
667 ::avro::decode(d, v.
value);
668 ::avro::decode(d, v.
typeId);
671 ::avro::decode(d, v.
label);
672 ::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.