6 #ifndef __SHOW_SCHEMA_H__ 7 #define __SHOW_SCHEMA_H__ 26 options(std::map<std::string, std::string>())
61 ShowSchemaRequest(
const std::string& schemaName_,
const std::map<std::string, std::string>& options_):
92 std::map<std::string, std::string>
options;
98 template<>
struct codec_traits<
gpudb::ShowSchemaRequest>
108 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
110 const std::vector<size_t> fo = rd->fieldOrder();
112 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
153 additionalInfo(std::vector<std::map<std::string, std::string> >()),
154 info(std::map<std::string, std::string>())
183 std::map<std::string, std::string>
info;
189 template<>
struct codec_traits<
gpudb::ShowSchemaResponse>
197 ::avro::encode(e, v.
info);
202 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
204 const std::vector<size_t> fo = rd->fieldOrder();
206 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
227 ::avro::decode(d, v.
info);
241 ::avro::decode(d, v.
info);
247 #endif // __SHOW_SCHEMA_H__ std::string schemaName
Value of schemaName.
std::string schemaName
Name of the schema for which to retrieve the information.
A set of parameters for GPUdb::showSchema.
std::map< std::string, std::string > info
Additional information.
ShowSchemaResponse()
Constructs a ShowSchemaResponse object with default parameters.
ShowSchemaRequest()
Constructs a ShowSchemaRequest object with default parameters.
std::vector< std::vector< std::string > > schemaTables
An array of arrays containing a list of tables in each of the respective schemaNames.
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
Additional information about the respective tables in schemaNames.
std::vector< std::string > schemaNames
A list of all schema names for which information is returned.
std::map< std::string, std::string > options
Optional parameters.
A set of results returned by GPUdb::showSchema.