6 #ifndef __DELETE_RECORDS_H__ 7 #define __DELETE_RECORDS_H__ 35 options(std::map<std::string, std::string>())
103 DeleteRecordsRequest(
const std::string& tableName_,
const std::vector<std::string>& expressions_,
const std::map<std::string, std::string>& options_):
170 template<>
struct codec_traits<
gpudb::DeleteRecordsRequest>
181 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
183 const std::vector<size_t> fo = rd->fieldOrder();
185 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
231 info(std::map<std::string, std::string>())
248 std::map<std::string, std::string>
info;
254 template<>
struct codec_traits<
gpudb::DeleteRecordsResponse>
260 ::avro::encode(e, v.
info);
265 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
267 const std::vector<size_t> fo = rd->fieldOrder();
269 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
282 ::avro::decode(d, v.
info);
294 ::avro::decode(d, v.
info);
300 #endif // __DELETE_RECORDS_H__ A set of results returned by GPUdb::deleteRecords.
std::map< std::string, std::string > info
Additional information.
std::vector< int64_t > countsDeleted
Total number of records deleted per expression.
int64_t countDeleted
Total number of records deleted across all expressions.
std::map< std::string, std::string > options
Optional parameters.
DeleteRecordsRequest(const std::string &tableName_, const std::vector< std::string > &expressions_, const std::map< std::string, std::string > &options_)
Constructs a DeleteRecordsRequest object with the specified parameters.
A set of parameters for GPUdb::deleteRecords.
DeleteRecordsRequest()
Constructs a DeleteRecordsRequest object with default parameters.
std::string tableName
Name of the table from which to delete records, in [ schema_name.
std::vector< std::string > expressions
A list of the actual predicates, one for each select; format should follow the guidelines provided he...
DeleteRecordsResponse()
Constructs a DeleteRecordsResponse object with default parameters.