6 #ifndef __CREATE_SCHEMA_H__
7 #define __CREATE_SCHEMA_H__
30 options(std::map<std::string, std::string>())
57 CreateSchemaRequest(
const std::string& schemaName_,
const std::map<std::string, std::string>& options_):
64 std::map<std::string, std::string>
options;
70 template<>
struct codec_traits<gpudb::CreateSchemaRequest>
80 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
82 const std::vector<size_t> fo = rd->fieldOrder();
84 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
131 info(std::map<std::string, std::string>())
136 std::map<std::string, std::string>
info;
142 template<>
struct codec_traits<gpudb::CreateSchemaResponse>
147 ::avro::encode(e, v.
info);
152 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154 const std::vector<size_t> fo = rd->fieldOrder();
156 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
165 ::avro::decode(d, v.
info);
176 ::avro::decode(d, v.
info);
std::map< std::string, std::string > info
CreateSchemaRequest(const std::string &schemaName_, const std::map< std::string, std::string > &options_)
Constructs a CreateSchemaRequest object with the specified parameters.
A set of input parameters for const.
A set of output parameters for const.
CreateSchemaResponse()
Constructs a CreateSchemaResponse object with default parameter values.
CreateSchemaRequest()
Constructs a CreateSchemaRequest object with default parameter values.
std::map< std::string, std::string > options