6 #ifndef __ALTER_TABLE_METADATA_H__
7 #define __ALTER_TABLE_METADATA_H__
31 options(std::map<std::string, std::string>())
52 AlterTableMetadataRequest(
const std::vector<std::string>& tableNames_,
const std::map<std::string, std::string>& metadataMap_,
const std::map<std::string, std::string>& options_):
61 std::map<std::string, std::string>
options;
67 template<>
struct codec_traits<gpudb::AlterTableMetadataRequest>
78 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
80 const std::vector<size_t> fo = rd->fieldOrder();
82 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
135 info(std::map<std::string, std::string>())
141 std::map<std::string, std::string>
info;
147 template<>
struct codec_traits<gpudb::AlterTableMetadataResponse>
153 ::avro::encode(e, v.
info);
158 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
160 const std::vector<size_t> fo = rd->fieldOrder();
162 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
175 ::avro::decode(d, v.
info);
187 ::avro::decode(d, v.
info);