6 #ifndef __CREATE_TABLE_H__
7 #define __CREATE_TABLE_H__
50 options(std::map<std::string, std::string>())
227 CreateTableRequest(
const std::string& tableName_,
const std::string& typeId_,
const std::map<std::string, std::string>& options_):
242 template<>
struct codec_traits<gpudb::CreateTableRequest>
247 ::avro::encode(e, v.
typeId);
253 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
255 const std::vector<size_t> fo = rd->fieldOrder();
257 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
266 ::avro::decode(d, v.
typeId);
281 ::avro::decode(d, v.
typeId);
330 info(std::map<std::string, std::string>())
337 std::map<std::string, std::string>
info;
343 template<>
struct codec_traits<gpudb::CreateTableResponse>
348 ::avro::encode(e, v.
typeId);
350 ::avro::encode(e, v.
info);
355 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
357 const std::vector<size_t> fo = rd->fieldOrder();
359 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
368 ::avro::decode(d, v.
typeId);
376 ::avro::decode(d, v.
info);
387 ::avro::decode(d, v.
typeId);
389 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
CreateTableRequest()
Constructs a CreateTableRequest object with default parameter values.
A set of input parameters for const.
CreateTableRequest(const std::string &tableName_, const std::string &typeId_, const std::map< std::string, std::string > &options_)
Constructs a CreateTableRequest object with the specified parameters.
CreateTableResponse()
Constructs a CreateTableResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > options