6 #ifndef __UPDATE_RECORDS_H__ 7 #define __UPDATE_RECORDS_H__ 58 options(std::map<std::string, std::string>())
316 RawUpdateRecordsRequest(
const std::string& tableName_,
const std::vector<std::string>& expressions_,
const std::vector<std::map<std::string, boost::optional<std::string> > >& newValuesMaps_,
const std::vector<std::vector<uint8_t> >& recordsToInsert_,
const std::map<std::string, std::string>& options_):
601 RawUpdateRecordsRequest(
const std::string& tableName_,
const std::vector<std::string>& expressions_,
const std::vector<std::map<std::string, boost::optional<std::string> > >& newValuesMaps_,
const std::vector<std::vector<uint8_t> >& recordsToInsert_,
const std::vector<std::string>& recordsToInsertStr_,
const std::string& recordEncoding_,
const std::map<std::string, std::string>& options_):
635 std::vector<std::map<std::string, boost::optional<std::string> > >
newValuesMaps;
827 template<>
struct codec_traits<
gpudb::RawUpdateRecordsRequest>
842 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
844 const std::vector<size_t> fo = rd->fieldOrder();
846 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
946 data(std::vector<T>()),
947 options(std::map<std::string, std::string>())
1202 UpdateRecordsRequest(
const std::string& tableName_,
const std::vector<std::string>& expressions_,
const std::vector<std::map<std::string, boost::optional<std::string> > >& newValuesMaps_,
const std::vector<T>& data_,
const std::map<std::string, std::string>& options_):
1234 std::vector<std::map<std::string, boost::optional<std::string> > >
newValuesMaps;
1421 info(std::map<std::string, std::string>())
1452 std::map<std::string, std::string>
info;
1458 template<>
struct codec_traits<
gpudb::UpdateRecordsResponse>
1466 ::avro::encode(e, v.
info);
1471 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1473 const std::vector<size_t> fo = rd->fieldOrder();
1475 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1496 ::avro::decode(d, v.
info);
1510 ::avro::decode(d, v.
info);
1516 #endif // __UPDATE_RECORDS_H__ UpdateRecordsRequest(const std::string &tableName_, const std::vector< std::string > &expressions_, const std::vector< std::map< std::string, boost::optional< std::string > > > &newValuesMaps_, const std::vector< T > &data_, const std::map< std::string, std::string > &options_)
Constructs an UpdateRecordsRequest object with the specified parameters.
RawUpdateRecordsRequest(const std::string &tableName_, const std::vector< std::string > &expressions_, const std::vector< std::map< std::string, boost::optional< std::string > > > &newValuesMaps_, const std::vector< std::vector< uint8_t > > &recordsToInsert_, const std::map< std::string, std::string > &options_)
Constructs a RawUpdateRecordsRequest object with the specified parameters.
RawUpdateRecordsRequest(const std::string &tableName_, const std::vector< std::string > &expressions_, const std::vector< std::map< std::string, boost::optional< std::string > > > &newValuesMaps_, const std::vector< std::vector< uint8_t > > &recordsToInsert_, const std::vector< std::string > &recordsToInsertStr_, const std::string &recordEncoding_, const std::map< std::string, std::string > &options_)
Constructs a RawUpdateRecordsRequest object with the specified parameters.
std::vector< std::string > recordsToInsertStr
An optional list of JSON encoded objects to insert, one for each update, to be added if the particula...
int64_t countUpdated
Total number of records updated.
std::map< std::string, std::string > options
Optional parameters.
std::vector< int64_t > countsInserted
Total number of records inserted per predicate in expressions (will be either 0 or 1 for each express...
std::vector< std::vector< uint8_t > > recordsToInsert
An optional list of new binary-avro encoded records to insert, one for each update.
std::vector< int64_t > countsUpdated
Total number of records updated per predicate in expressions.
std::map< std::string, std::string > info
Additional information.
std::vector< std::string > expressions
A list of the actual predicates, one for each update; format should follow the guidelines here.
std::vector< std::string > expressions
A list of the actual predicates, one for each update; format should follow the guidelines here.
std::string recordEncoding
Identifies which of recordsToInsert and recordsToInsertStr should be used.
UpdateRecordsResponse()
Constructs an UpdateRecordsResponse object with default parameters.
A set of results returned by GPUdb::updateRecords.
std::vector< std::map< std::string, boost::optional< std::string > > > newValuesMaps
List of new values for the matching records.
int64_t countInserted
Total number of records inserted (due to expressions not matching any existing records).
A set of parameters for GPUdb::updateRecordsRaw.
std::vector< T > data
An optional list of new binary-avro encoded records to insert, one for each update.
std::vector< std::map< std::string, boost::optional< std::string > > > newValuesMaps
List of new values for the matching records.
A set of parameters for GPUdb::updateRecords.
UpdateRecordsRequest()
Constructs an UpdateRecordsRequest object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::string tableName
Name of table to be updated, in [ schema_name. ]table_name format, using standard name resolution rul...
RawUpdateRecordsRequest()
Constructs a RawUpdateRecordsRequest object with default parameters.
std::string tableName
Name of table to be updated, in [ schema_name. ]table_name format, using standard name resolution rul...