6 #ifndef __MERGE_RECORDS_H__ 7 #define __MERGE_RECORDS_H__ 41 fieldMaps(std::vector<std::map<std::string, std::string> >()),
42 options(std::map<std::string, std::string>())
195 MergeRecordsRequest(
const std::string& tableName_,
const std::vector<std::string>& sourceTableNames_,
const std::vector<std::map<std::string, std::string> >& fieldMaps_,
const std::map<std::string, std::string>& options_):
234 std::vector<std::map<std::string, std::string> >
fieldMaps;
326 template<>
struct codec_traits<
gpudb::MergeRecordsRequest>
338 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
340 const std::vector<size_t> fo = rd->fieldOrder();
342 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
392 info(std::map<std::string, std::string>())
407 std::map<std::string, std::string>
info;
413 template<>
struct codec_traits<
gpudb::MergeRecordsResponse>
418 ::avro::encode(e, v.
info);
423 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
425 const std::vector<size_t> fo = rd->fieldOrder();
427 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
436 ::avro::decode(d, v.
info);
447 ::avro::decode(d, v.
info);
453 #endif // __MERGE_RECORDS_H__ MergeRecordsRequest(const std::string &tableName_, const std::vector< std::string > &sourceTableNames_, const std::vector< std::map< std::string, std::string > > &fieldMaps_, const std::map< std::string, std::string > &options_)
Constructs a MergeRecordsRequest object with the specified parameters.
std::map< std::string, std::string > options
Optional parameters.
MergeRecordsRequest()
Constructs a MergeRecordsRequest object with default parameters.
A set of results returned by GPUdb::mergeRecords.
std::vector< std::string > sourceTableNames
The list of names of source tables to get the records from, each in [ schema_name....
A set of parameters for GPUdb::mergeRecords.
std::string tableName
The name of the new result table for the records to be merged into, in [ schema_name....
std::vector< std::map< std::string, std::string > > fieldMaps
Contains a list of source/target column mappings, one mapping for each source table listed in sourceT...
std::map< std::string, std::string > info
Additional information.
MergeRecordsResponse()
Constructs a MergeRecordsResponse object with default parameters.