6 #ifndef __INSERT_RECORDS_H__ 7 #define __INSERT_RECORDS_H__ 42 list(std::vector<std::vector<uint8_t> >()),
43 listStr(std::vector<std::string>()),
45 options(std::map<std::string, std::string>())
95 RawInsertRecordsRequest(
const std::string& tableName_,
const std::vector<std::vector<uint8_t> >& list_,
const std::map<std::string, std::string>& options_):
98 listStr( std::vector<std::string>() ),
162 RawInsertRecordsRequest(
const std::string& tableName_,
const std::vector<std::vector<uint8_t> >& list_,
const std::vector<std::string>& listStr_,
const std::string& listEncoding_,
const std::map<std::string, std::string>& options_):
172 std::vector<std::vector<uint8_t> >
list;
186 ::avro::encode(e, v.
list);
194 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
196 const std::vector<size_t> fo = rd->fieldOrder();
198 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
207 ::avro::decode(d, v.
list);
230 ::avro::decode(d, v.
list);
275 data(std::vector<T>()),
276 options(std::map<std::string, std::string>())
326 InsertRecordsRequest(
const std::string& tableName_,
const std::vector<T>& data_,
const std::map<std::string, std::string>& options_):
371 recordIds(std::vector<std::string>()),
372 countInserted(int32_t()),
373 countUpdated(int32_t())
396 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
398 const std::vector<size_t> fo = rd->fieldOrder();
400 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
RawInsertRecordsRequest()
Constructs a RawInsertRecordsRequest object with default parameter values.
InsertRecordsRequest(const std::string &tableName_, const std::vector< T > &data_, const std::map< std::string, std::string > &options_)
Constructs an InsertRecordsRequest object with the specified parameters.
A set of output parameters for insertRecordsRaw(const RawInsertRecordsRequest&) const.
std::vector< std::string > listStr
std::vector< std::string > recordIds
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default parameter values.
RawInsertRecordsRequest(const std::string &tableName_, const std::vector< std::vector< uint8_t > > &list_, const std::vector< std::string > &listStr_, const std::string &listEncoding_, const std::map< std::string, std::string > &options_)
Constructs a RawInsertRecordsRequest object with the specified parameters.
InsertRecordsResponse()
Constructs an InsertRecordsResponse object with default parameter values.
std::map< std::string, std::string > options
RawInsertRecordsRequest(const std::string &tableName_, const std::vector< std::vector< uint8_t > > &list_, const std::map< std::string, std::string > &options_)
Constructs a RawInsertRecordsRequest object with the specified parameters.
A set of input parameters for insertRecordsRaw(const RawInsertRecordsRequest&) const.
std::vector< std::vector< uint8_t > > list
std::map< std::string, std::string > options
A set of input parameters for insertRecordsRaw(const RawInsertRecordsRequest&) const.