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_):
603 std::map<std::string, std::map<std::string, double> >
options;
609 template<>
struct codec_traits<
gpudb::InsertRecordsRandomRequest>
614 ::avro::encode(e, v.
count);
620 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
622 const std::vector<size_t> fo = rd->fieldOrder();
624 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
633 ::avro::decode(d, v.
count);
648 ::avro::decode(d, v.
count);
671 info(std::map<std::string, std::string>())
689 std::map<std::string, std::string>
info;
695 template<>
struct codec_traits<
gpudb::InsertRecordsRandomResponse>
700 ::avro::encode(e, v.
count);
701 ::avro::encode(e, v.
info);
706 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
708 const std::vector<size_t> fo = rd->fieldOrder();
710 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
719 ::avro::decode(d, v.
count);
723 ::avro::decode(d, v.
info);
734 ::avro::decode(d, v.
count);
735 ::avro::decode(d, v.
info);
741 #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.