6 #ifndef __ALTER_SCHEMA_H__
7 #define __ALTER_SCHEMA_H__
31 options(std::map<std::string, std::string>())
55 AlterSchemaRequest(
const std::string& schemaName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
66 std::map<std::string, std::string>
options;
72 template<>
struct codec_traits<gpudb::AlterSchemaRequest>
77 ::avro::encode(e, v.
action);
78 ::avro::encode(e, v.
value);
84 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
86 const std::vector<size_t> fo = rd->fieldOrder();
88 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
97 ::avro::decode(d, v.
action);
101 ::avro::decode(d, v.
value);
116 ::avro::decode(d, v.
action);
117 ::avro::decode(d, v.
value);
144 info(std::map<std::string, std::string>())
149 std::map<std::string, std::string>
info;
155 template<>
struct codec_traits<gpudb::AlterSchemaResponse>
160 ::avro::encode(e, v.
info);
165 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
167 const std::vector<size_t> fo = rd->fieldOrder();
169 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
178 ::avro::decode(d, v.
info);
189 ::avro::decode(d, v.
info);
A set of input parameters for const.
AlterSchemaRequest(const std::string &schemaName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterSchemaRequest object with the specified parameters.
std::map< std::string, std::string > options
AlterSchemaRequest()
Constructs an AlterSchemaRequest object with default parameter values.
AlterSchemaResponse()
Constructs an AlterSchemaResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > info