6 #ifndef __ALTER_TABLE_H__ 7 #define __ALTER_TABLE_H__ 73 options(std::map<std::string, std::string>())
637 AlterTableRequest(
const std::string& tableName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
1050 template<>
struct codec_traits<
gpudb::AlterTableRequest>
1055 ::avro::encode(e, v.
action);
1056 ::avro::encode(e, v.
value);
1062 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1064 const std::vector<size_t> fo = rd->fieldOrder();
1066 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1075 ::avro::decode(d, v.
action);
1079 ::avro::decode(d, v.
value);
1094 ::avro::decode(d, v.
action);
1095 ::avro::decode(d, v.
value);
1116 value(std::string()),
1119 properties(std::map<std::string, std::vector<std::string> >()),
1120 label(std::string()),
1121 info(std::map<std::string, std::string>())
1167 std::map<std::string, std::string>
info;
1173 template<>
struct codec_traits<
gpudb::AlterTableResponse>
1178 ::avro::encode(e, v.
action);
1179 ::avro::encode(e, v.
value);
1180 ::avro::encode(e, v.
typeId);
1183 ::avro::encode(e, v.
label);
1184 ::avro::encode(e, v.
info);
1189 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1191 const std::vector<size_t> fo = rd->fieldOrder();
1193 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1202 ::avro::decode(d, v.
action);
1206 ::avro::decode(d, v.
value);
1210 ::avro::decode(d, v.
typeId);
1222 ::avro::decode(d, v.
label);
1226 ::avro::decode(d, v.
info);
1237 ::avro::decode(d, v.
action);
1238 ::avro::decode(d, v.
value);
1239 ::avro::decode(d, v.
typeId);
1242 ::avro::decode(d, v.
label);
1243 ::avro::decode(d, v.
info);
1249 #endif // __ALTER_TABLE_H__ A set of results returned by GPUdb::alterTable.
AlterTableResponse()
Constructs an AlterTableResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string label
return the type label (when changing a table, a new type may be created)
std::string action
Modification operation to be applied.
std::string tableName
Table on which the operation will be performed, in [ schema_name.
std::map< std::string, std::vector< std::string > > properties
return the type properties (when changing a table, a new type may be created)
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterTable.
std::string typeId
return the type_id (when changing a table, a new type may be created)
std::string value
The value of the modification that was performed.
AlterTableRequest()
Constructs an AlterTableRequest object with default parameters.
std::string value
The value of the modification, depending on action.
std::string tableName
Table on which the operation was performed.
std::string action
Modification operation that was performed.
std::string typeDefinition
return the type_definition (when changing a table, a new type may be created)
AlterTableRequest(const std::string &tableName_, const std::string &action_, const std::string &value_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableRequest object with the specified parameters.