6 #ifndef __INSERT_RECORDS_RANDOM_H__
7 #define __INSERT_RECORDS_RANDOM_H__
36 options(std::map<std::string, std::map<std::string, double> >())
272 InsertRecordsRandomRequest(
const std::string& tableName_,
const int64_t count_,
const std::map<std::string, std::map<std::string, double> >& options_):
281 std::map<std::string, std::map<std::string, double> >
options;
287 template<>
struct codec_traits<gpudb::InsertRecordsRandomRequest>
292 ::avro::encode(e, v.
count);
298 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
300 const std::vector<size_t> fo = rd->fieldOrder();
302 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
311 ::avro::decode(d, v.
count);
326 ::avro::decode(d, v.
count);
360 info(std::map<std::string, std::string>())
366 std::map<std::string, std::string>
info;
372 template<>
struct codec_traits<gpudb::InsertRecordsRandomResponse>
377 ::avro::encode(e, v.
count);
378 ::avro::encode(e, v.
info);
383 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
385 const std::vector<size_t> fo = rd->fieldOrder();
387 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
396 ::avro::decode(d, v.
count);
400 ::avro::decode(d, v.
info);
411 ::avro::decode(d, v.
count);
412 ::avro::decode(d, v.
info);
InsertRecordsRandomRequest()
Constructs an InsertRecordsRandomRequest object with default parameter values.
InsertRecordsRandomRequest(const std::string &tableName_, const int64_t count_, const std::map< std::string, std::map< std::string, double > > &options_)
Constructs an InsertRecordsRandomRequest object with the specified parameters.
std::map< std::string, std::string > info
A set of output parameters for const.
std::map< std::string, std::map< std::string, double > > options
InsertRecordsRandomResponse()
Constructs an InsertRecordsRandomResponse object with default parameter values.
A set of input parameters for const.