6 #ifndef __ALTER_TABLE_H__ 7 #define __ALTER_TABLE_H__ 73 options(std::map<std::string, std::string>())
613 AlterTableRequest(
const std::string& tableName_,
const std::string& action_,
const std::string& value_,
const std::map<std::string, std::string>& options_):
1011 template<>
struct codec_traits<
gpudb::AlterTableRequest>
1016 ::avro::encode(e, v.
action);
1017 ::avro::encode(e, v.
value);
1023 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1025 const std::vector<size_t> fo = rd->fieldOrder();
1027 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1036 ::avro::decode(d, v.
action);
1040 ::avro::decode(d, v.
value);
1055 ::avro::decode(d, v.
action);
1056 ::avro::decode(d, v.
value);
1077 value(std::string()),
1080 properties(std::map<std::string, std::vector<std::string> >()),
1081 label(std::string()),
1082 info(std::map<std::string, std::string>())
1128 std::map<std::string, std::string>
info;
1134 template<>
struct codec_traits<
gpudb::AlterTableResponse>
1139 ::avro::encode(e, v.
action);
1140 ::avro::encode(e, v.
value);
1141 ::avro::encode(e, v.
typeId);
1144 ::avro::encode(e, v.
label);
1145 ::avro::encode(e, v.
info);
1150 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1152 const std::vector<size_t> fo = rd->fieldOrder();
1154 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1163 ::avro::decode(d, v.
action);
1167 ::avro::decode(d, v.
value);
1171 ::avro::decode(d, v.
typeId);
1183 ::avro::decode(d, v.
label);
1187 ::avro::decode(d, v.
info);
1198 ::avro::decode(d, v.
action);
1199 ::avro::decode(d, v.
value);
1200 ::avro::decode(d, v.
typeId);
1203 ::avro::decode(d, v.
label);
1204 ::avro::decode(d, v.
info);
1210 #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.