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>())
142 RawInsertRecordsRequest(
const std::string& tableName_,
const std::vector<std::vector<uint8_t> >& list_,
const std::map<std::string, std::string>& options_):
145 listStr( std::vector<std::string>() ),
256 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_):
266 std::vector<std::vector<uint8_t> >
list;
275 template<>
struct codec_traits<gpudb::RawInsertRecordsRequest>
280 ::avro::encode(e, v.
list);
288 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
290 const std::vector<size_t> fo = rd->fieldOrder();
292 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
301 ::avro::decode(d, v.
list);
324 ::avro::decode(d, v.
list);
369 data(std::vector<T>()),
370 options(std::map<std::string, std::string>())
467 InsertRecordsRequest(
const std::string& tableName_,
const std::vector<T>& data_,
const std::map<std::string, std::string>& options_):
515 info(std::map<std::string, std::string>())
522 std::map<std::string, std::string>
info;
528 template<>
struct codec_traits<gpudb::InsertRecordsResponse>
535 ::avro::encode(e, v.
info);
540 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
542 const std::vector<size_t> fo = rd->fieldOrder();
544 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
561 ::avro::decode(d, v.
info);
574 ::avro::decode(d, v.
info);
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 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
std::map< std::string, std::string > info
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 const.
std::vector< std::vector< uint8_t > > list
std::map< std::string, std::string > options
A set of input parameters for const.