6 #ifndef __INSERT_RECORDS_RANDOM_H__ 7 #define __INSERT_RECORDS_RANDOM_H__ 35 options(std::map<std::string, std::map<std::string, double> >())
374 InsertRecordsRandomRequest(
const std::string& tableName_,
const int64_t count_,
const std::map<std::string, std::map<std::string, double> >& options_):
602 std::map<std::string, std::map<std::string, double> >
options;
608 template<>
struct codec_traits<
gpudb::InsertRecordsRandomRequest>
613 ::avro::encode(e, v.
count);
619 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
621 const std::vector<size_t> fo = rd->fieldOrder();
623 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
632 ::avro::decode(d, v.
count);
647 ::avro::decode(d, v.
count);
670 info(std::map<std::string, std::string>())
688 std::map<std::string, std::string>
info;
694 template<>
struct codec_traits<
gpudb::InsertRecordsRandomResponse>
699 ::avro::encode(e, v.
count);
700 ::avro::encode(e, v.
info);
705 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
707 const std::vector<size_t> fo = rd->fieldOrder();
709 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
718 ::avro::decode(d, v.
count);
722 ::avro::decode(d, v.
info);
733 ::avro::decode(d, v.
count);
734 ::avro::decode(d, v.
info);
740 #endif // __INSERT_RECORDS_RANDOM_H__ int64_t count
Number of records inserted.
InsertRecordsRandomRequest()
Constructs an InsertRecordsRandomRequest object with default parameters.
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
Additional information.
A set of results returned by GPUdb::insertRecordsRandom.
std::map< std::string, std::map< std::string, double > > options
Optional parameter to pass in specifications for the randomness of the values.
InsertRecordsRandomResponse()
Constructs an InsertRecordsRandomResponse object with default parameters.
int64_t count
Number of records to generate.
std::string tableName
Value of tableName.
A set of parameters for GPUdb::insertRecordsRandom.
std::string tableName
Table to which random records will be added, in [ schema_name.