6 #ifndef __SHOW_SCHEMA_H__
7 #define __SHOW_SCHEMA_H__
28 options(std::map<std::string, std::string>())
54 ShowSchemaRequest(
const std::string& schemaName_,
const std::map<std::string, std::string>& options_):
61 std::map<std::string, std::string>
options;
67 template<>
struct codec_traits<gpudb::ShowSchemaRequest>
77 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
79 const std::vector<size_t> fo = rd->fieldOrder();
81 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
129 additionalInfo(std::vector<std::map<std::string, std::string> >()),
130 info(std::map<std::string, std::string>())
138 std::map<std::string, std::string>
info;
144 template<>
struct codec_traits<gpudb::ShowSchemaResponse>
152 ::avro::encode(e, v.
info);
157 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
159 const std::vector<size_t> fo = rd->fieldOrder();
161 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
182 ::avro::decode(d, v.
info);
196 ::avro::decode(d, v.
info);
A set of input parameters for const.
std::map< std::string, std::string > info
ShowSchemaResponse()
Constructs a ShowSchemaResponse object with default parameter values.
ShowSchemaRequest()
Constructs a ShowSchemaRequest object with default parameter values.
std::vector< std::vector< std::string > > schemaTables
ShowSchemaRequest(const std::string &schemaName_, const std::map< std::string, std::string > &options_)
Constructs a ShowSchemaRequest object with the specified parameters.
std::vector< std::map< std::string, std::string > > additionalInfo
std::vector< std::string > schemaNames
std::map< std::string, std::string > options
A set of output parameters for const.