6 #ifndef __SHOW_TABLE_METADATA_H__
7 #define __SHOW_TABLE_METADATA_H__
27 options(std::map<std::string, std::string>())
48 std::map<std::string, std::string>
options;
54 template<>
struct codec_traits<gpudb::ShowTableMetadataRequest>
64 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
66 const std::vector<size_t> fo = rd->fieldOrder();
68 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
112 metadataMaps(std::vector<std::map<std::string, std::string> >()),
113 info(std::map<std::string, std::string>())
119 std::map<std::string, std::string>
info;
125 template<>
struct codec_traits<gpudb::ShowTableMetadataResponse>
131 ::avro::encode(e, v.
info);
136 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
138 const std::vector<size_t> fo = rd->fieldOrder();
140 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
153 ::avro::decode(d, v.
info);
165 ::avro::decode(d, v.
info);