6 #ifndef __ALTER_TABLE_H__ 7 #define __ALTER_TABLE_H__ 73 options(std::map<std::string, std::string>())
608 AlterTableRequest(
const std::string& tableName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
1003 template<>
struct codec_traits<
gpudb::AlterTableRequest>
1008 ::avro::encode(e, v.
action);
1009 ::avro::encode(e, v.
value);
1015 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1017 const std::vector<size_t> fo = rd->fieldOrder();
1019 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1028 ::avro::decode(d, v.
action);
1032 ::avro::decode(d, v.
value);
1047 ::avro::decode(d, v.
action);
1048 ::avro::decode(d, v.
value);
1069 value(std::string()),
1072 properties(std::map<std::string, std::vector<std::string> >()),
1073 label(std::string()),
1074 info(std::map<std::string, std::string>())
1120 std::map<std::string, std::string>
info;
1126 template<>
struct codec_traits<
gpudb::AlterTableResponse>
1131 ::avro::encode(e, v.
action);
1132 ::avro::encode(e, v.
value);
1133 ::avro::encode(e, v.
typeId);
1136 ::avro::encode(e, v.
label);
1137 ::avro::encode(e, v.
info);
1142 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1144 const std::vector<size_t> fo = rd->fieldOrder();
1146 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1155 ::avro::decode(d, v.
action);
1159 ::avro::decode(d, v.
value);
1163 ::avro::decode(d, v.
typeId);
1175 ::avro::decode(d, v.
label);
1179 ::avro::decode(d, v.
info);
1190 ::avro::decode(d, v.
action);
1191 ::avro::decode(d, v.
value);
1192 ::avro::decode(d, v.
typeId);
1195 ::avro::decode(d, v.
label);
1196 ::avro::decode(d, v.
info);
1202 #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.