6 #ifndef __ALTER_TABLE_COLUMNS_H__
7 #define __ALTER_TABLE_COLUMNS_H__
44 options(std::map<std::string, std::string>())
72 AlterTableColumnsRequest(
const std::string& tableName_,
const std::vector<std::map<std::string, std::string> >& columnAlterations_,
const std::map<std::string, std::string>& options_):
81 std::map<std::string, std::string>
options;
87 template<>
struct codec_traits<gpudb::AlterTableColumnsRequest>
98 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
100 const std::vector<size_t> fo = rd->fieldOrder();
102 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
169 properties(std::map<std::string, std::vector<std::string> >()),
170 label(std::string()),
172 info(std::map<std::string, std::string>())
182 std::map<std::string, std::string>
info;
188 template<>
struct codec_traits<gpudb::AlterTableColumnsResponse>
193 ::avro::encode(e, v.
typeId);
196 ::avro::encode(e, v.
label);
198 ::avro::encode(e, v.
info);
203 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
205 const std::vector<size_t> fo = rd->fieldOrder();
207 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
216 ::avro::decode(d, v.
typeId);
228 ::avro::decode(d, v.
label);
236 ::avro::decode(d, v.
info);
247 ::avro::decode(d, v.
typeId);
250 ::avro::decode(d, v.
label);
252 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
A set of input parameters for const.
std::vector< std::map< std::string, std::string > > columnAlterations
AlterTableColumnsRequest()
Constructs an AlterTableColumnsRequest object with default parameter values.
std::vector< std::map< std::string, std::string > > columnAlterations
A set of output parameters for const.
AlterTableColumnsResponse()
Constructs an AlterTableColumnsResponse object with default parameter values.
std::map< std::string, std::string > options
std::string typeDefinition
std::map< std::string, std::vector< std::string > > properties
AlterTableColumnsRequest(const std::string &tableName_, const std::vector< std::map< std::string, std::string > > &columnAlterations_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableColumnsRequest object with the specified parameters.