6 #ifndef __ALTER_SCHEMA_H__ 7 #define __ALTER_SCHEMA_H__ 29 options(std::map<std::string, std::string>())
59 AlterSchemaRequest(
const std::string& schemaName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
98 std::map<std::string, std::string>
options;
104 template<>
struct codec_traits<
gpudb::AlterSchemaRequest>
109 ::avro::encode(e, v.
action);
110 ::avro::encode(e, v.
value);
116 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
118 const std::vector<size_t> fo = rd->fieldOrder();
120 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
129 ::avro::decode(d, v.
action);
133 ::avro::decode(d, v.
value);
148 ::avro::decode(d, v.
action);
149 ::avro::decode(d, v.
value);
170 info(std::map<std::string, std::string>())
182 std::map<std::string, std::string>
info;
188 template<>
struct codec_traits<
gpudb::AlterSchemaResponse>
193 ::avro::encode(e, v.
info);
198 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
200 const std::vector<size_t> fo = rd->fieldOrder();
202 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
211 ::avro::decode(d, v.
info);
222 ::avro::decode(d, v.
info);
228 #endif // __ALTER_SCHEMA_H__ std::string schemaName
Name of the schema to be altered.
A set of parameters for GPUdb::alterSchema.
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
Optional parameters.
AlterSchemaRequest()
Constructs an AlterSchemaRequest object with default parameters.
std::string value
The value of the modification, depending on action.
AlterSchemaResponse()
Constructs an AlterSchemaResponse object with default parameters.
std::string schemaName
Value of schemaName.
std::string action
Modification operation to be applied.
A set of results returned by GPUdb::alterSchema.
std::map< std::string, std::string > info
Additional information.