6 #ifndef __ALTER_TABLE_COLUMNS_H__ 7 #define __ALTER_TABLE_COLUMNS_H__ 39 options(std::map<std::string, std::string>())
66 AlterTableColumnsRequest(
const std::string& tableName_,
const std::vector<std::map<std::string, std::string> >& columnAlterations_,
const std::map<std::string, std::string>& options_):
95 std::map<std::string, std::string>
options;
101 template<>
struct codec_traits<
gpudb::AlterTableColumnsRequest>
112 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
114 const std::vector<size_t> fo = rd->fieldOrder();
116 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
164 properties(std::map<std::string, std::vector<std::string> >()),
165 label(std::string()),
167 info(std::map<std::string, std::string>())
214 std::map<std::string, std::string>
info;
220 template<>
struct codec_traits<
gpudb::AlterTableColumnsResponse>
225 ::avro::encode(e, v.
typeId);
228 ::avro::encode(e, v.
label);
230 ::avro::encode(e, v.
info);
235 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
237 const std::vector<size_t> fo = rd->fieldOrder();
239 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
248 ::avro::decode(d, v.
typeId);
260 ::avro::decode(d, v.
label);
268 ::avro::decode(d, v.
info);
279 ::avro::decode(d, v.
typeId);
282 ::avro::decode(d, v.
label);
284 ::avro::decode(d, v.
info);
290 #endif // __ALTER_TABLE_COLUMNS_H__ std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::alterTableColumns.
std::string typeId
return the type_id (when changing a table, a new type may be created)
std::vector< std::map< std::string, std::string > > columnAlterations
List of alter table add/delete/change column requests - all for the same table.
std::string tableName
Table on which the operation will be performed.
AlterTableColumnsRequest()
Constructs an AlterTableColumnsRequest object with default parameters.
std::string label
return the type label (when changing a table, a new type may be created)
std::string tableName
Table on which the operation was performed.
std::vector< std::map< std::string, std::string > > columnAlterations
List of alter table add/delete/change column requests - all for the same table.
A set of results returned by GPUdb::alterTableColumns.
AlterTableColumnsResponse()
Constructs an AlterTableColumnsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string typeDefinition
return the type_definition (when changing a table, a new type may be created)
std::map< std::string, std::vector< std::string > > properties
return the type properties (when changing a table, a new type may be created)
AlterTableColumnsRequest(const std::string &tableName_, const std::vector< std::map< std::string, std::string > > &columnAlterations_, const std::map< std::string, std::string > &options_)
Constructs an AlterTableColumnsRequest object with the specified parameters.