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>())
272 RawInsertRecordsRequest(
const std::string& tableName_,
const std::vector<std::vector<uint8_t> >& list_,
const std::map<std::string, std::string>& options_):
275 listStr( std::vector<std::string>() ),
521 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_):
543 std::vector<std::vector<uint8_t> >
list;
723 template<>
struct codec_traits<
gpudb::RawInsertRecordsRequest>
728 ::avro::encode(e, v.
list);
736 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
738 const std::vector<size_t> fo = rd->fieldOrder();
740 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
749 ::avro::decode(d, v.
list);
772 ::avro::decode(d, v.
list);
817 data(std::vector<T>()),
818 options(std::map<std::string, std::string>())
1045 InsertRecordsRequest(
const std::string& tableName_,
const std::vector<T>& data_,
const std::map<std::string, std::string>& options_):
1240 info(std::map<std::string, std::string>())
1271 std::map<std::string, std::string>
info;
1277 template<>
struct codec_traits<
gpudb::InsertRecordsResponse>
1284 ::avro::encode(e, v.
info);
1289 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1291 const std::vector<size_t> fo = rd->fieldOrder();
1293 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1310 ::avro::decode(d, v.
info);
1323 ::avro::decode(d, v.
info);
1329 #endif // __INSERT_RECORDS_H__ RawInsertRecordsRequest()
Constructs a RawInsertRecordsRequest object with default parameters.
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 results returned by GPUdb::insertRecords.
std::vector< std::string > listStr
An array of JSON encoded data for the records to be added.
std::vector< std::string > recordIds
An array containing the IDs with which the added records are identified internally.
InsertRecordsRequest()
Constructs an InsertRecordsRequest object with default parameters.
std::string tableName
Name of table to which the records are to be added, in [ schema_name. ]table_name format,...
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.
int32_t countInserted
The number of records inserted.
std::string listEncoding
The encoding of the records to be inserted.
InsertRecordsResponse()
Constructs an InsertRecordsResponse object with default parameters.
std::map< std::string, std::string > options
Optional parameters.
std::map< std::string, std::string > info
Additional information.
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.
int32_t countUpdated
The number of records updated.
A set of parameters for GPUdb::insertRecords.
std::vector< std::vector< uint8_t > > list
An array of binary-encoded data for the records to be added.
std::vector< T > data
An array of binary-encoded data for the records to be added.
std::string tableName
Name of table to which the records are to be added, in [ schema_name. ]table_name format,...
std::map< std::string, std::string > options
Optional parameters.
A set of parameters for GPUdb::insertRecordsRaw.