6 #ifndef __CLEAR_TABLES_H__ 7 #define __CLEAR_TABLES_H__ 28 options(std::map<std::string, std::string>())
72 ClearTablesRequest(
const std::vector<std::string>& tableNames_,
const std::map<std::string, std::string>& options_):
114 template<>
struct codec_traits<
gpudb::ClearTablesRequest>
124 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
126 const std::vector<size_t> fo = rd->fieldOrder();
128 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
167 tables(std::map<std::string, std::string>()),
168 info(std::map<std::string, std::string>())
177 std::map<std::string, std::string>
tables;
182 std::map<std::string, std::string>
info;
188 template<>
struct codec_traits<
gpudb::ClearTablesResponse>
192 ::avro::encode(e, v.
tables);
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)
207 ::avro::decode(d, v.
tables);
211 ::avro::decode(d, v.
info);
221 ::avro::decode(d, v.
tables);
222 ::avro::decode(d, v.
info);
228 #endif // __CLEAR_TABLES_H__ std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::clearTables.
A set of results returned by GPUdb::clearTables.
ClearTablesRequest(const std::vector< std::string > &tableNames_, const std::map< std::string, std::string > &options_)
Constructs a ClearTablesRequest object with the specified parameters.
ClearTablesResponse()
Constructs a ClearTablesResponse object with default parameters.
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > tables
For each table in tableNames, any error from the clear operation, or an empty string if successful.
ClearTablesRequest()
Constructs a ClearTablesRequest object with default parameters.
std::vector< std::string > tableNames
Names of the tables to be cleared, in [ schema_name. ]table_name format, using standard name resoluti...