6 #ifndef __UPDATE_RECORDS_H__
7 #define __UPDATE_RECORDS_H__
53 newValuesMaps(std::vector<std::map<std::string, boost::optional<std::string> > >()),
57 options(std::map<std::string, std::string>())
184 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_):
333 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_):
346 std::vector<std::map<std::string, boost::optional<std::string> > >
newValuesMaps;
356 template<>
struct codec_traits<gpudb::RawUpdateRecordsRequest>
371 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
373 const std::vector<size_t> fo = rd->fieldOrder();
375 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
473 newValuesMaps(std::vector<std::map<std::string, boost::optional<std::string> > >()),
474 data(std::vector<T>()),
475 options(std::map<std::string, std::string>())
600 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_):
611 std::vector<std::map<std::string, boost::optional<std::string> > >
newValuesMaps;
663 info(std::map<std::string, std::string>())
671 std::map<std::string, std::string>
info;
677 template<>
struct codec_traits<gpudb::UpdateRecordsResponse>
685 ::avro::encode(e, v.
info);
690 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
692 const std::vector<size_t> fo = rd->fieldOrder();
694 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
715 ::avro::decode(d, v.
info);
729 ::avro::decode(d, v.
info);
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
std::map< std::string, std::string > options
std::vector< int64_t > countsInserted
std::vector< std::vector< uint8_t > > recordsToInsert
std::vector< int64_t > countsUpdated
std::map< std::string, std::string > info
std::vector< std::string > expressions
std::vector< std::string > expressions
std::string recordEncoding
UpdateRecordsResponse()
Constructs an UpdateRecordsResponse object with default parameter values.
A set of output parameters for const.
std::vector< std::map< std::string, boost::optional< std::string > > > newValuesMaps
A set of input parameters for const.
std::vector< std::map< std::string, boost::optional< std::string > > > newValuesMaps
A set of input parameters for const.
UpdateRecordsRequest()
Constructs an UpdateRecordsRequest object with default parameter values.
std::map< std::string, std::string > options
RawUpdateRecordsRequest()
Constructs a RawUpdateRecordsRequest object with default parameter values.