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>())
260 RawInsertRecordsRequest(
const std::string& tableName_,
const std::vector<std::vector<uint8_t> >& list_,
const std::map<std::string, std::string>& options_):
263 listStr( std::vector<std::string>() ),
497 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_):
519 std::vector<std::vector<uint8_t> >
list;
691 template<>
struct codec_traits<
gpudb::RawInsertRecordsRequest>
696 ::avro::encode(e, v.
list);
704 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
706 const std::vector<size_t> fo = rd->fieldOrder();
708 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
717 ::avro::decode(d, v.
list);
740 ::avro::decode(d, v.
list);
785 data(std::vector<T>()),
786 options(std::map<std::string, std::string>())
1001 InsertRecordsRequest(
const std::string& tableName_,
const std::vector<T>& data_,
const std::map<std::string, std::string>& options_):
1188 info(std::map<std::string, std::string>())
1219 std::map<std::string, std::string>
info;
1225 template<>
struct codec_traits<
gpudb::InsertRecordsResponse>
1232 ::avro::encode(e, v.
info);
1237 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1239 const std::vector<size_t> fo = rd->fieldOrder();
1241 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1258 ::avro::decode(d, v.
info);
1271 ::avro::decode(d, v.
info);
1277 #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.