6 #ifndef __INSERT_RECORDS_RANDOM_H__ 7 #define __INSERT_RECORDS_RANDOM_H__ 35 options(std::map<std::string, std::map<std::string, double> >())
375 InsertRecordsRandomRequest(
const std::string& tableName_,
const int64_t count_,
const std::map<std::string, std::map<std::string, double> >& options_):
601 std::map<std::string, std::map<std::string, double> >
options;
607 template<>
struct codec_traits<
gpudb::InsertRecordsRandomRequest>
612 ::avro::encode(e, v.
count);
618 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
620 const std::vector<size_t> fo = rd->fieldOrder();
622 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
631 ::avro::decode(d, v.
count);
646 ::avro::decode(d, v.
count);
669 info(std::map<std::string, std::string>())
687 std::map<std::string, std::string>
info;
693 template<>
struct codec_traits<
gpudb::InsertRecordsRandomResponse>
698 ::avro::encode(e, v.
count);
699 ::avro::encode(e, v.
info);
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.
count);
721 ::avro::decode(d, v.
info);
732 ::avro::decode(d, v.
count);
733 ::avro::decode(d, v.
info);
739 #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.