6 #ifndef __MERGE_RECORDS_H__
7 #define __MERGE_RECORDS_H__
42 fieldMaps(std::vector<std::map<std::string, std::string> >()),
43 options(std::map<std::string, std::string>())
123 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_):
133 std::vector<std::map<std::string, std::string> >
fieldMaps;
140 template<>
struct codec_traits<gpudb::MergeRecordsRequest>
152 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
154 const std::vector<size_t> fo = rd->fieldOrder();
156 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
224 info(std::map<std::string, std::string>())
229 std::map<std::string, std::string>
info;
235 template<>
struct codec_traits<gpudb::MergeRecordsResponse>
240 ::avro::encode(e, v.
info);
245 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
247 const std::vector<size_t> fo = rd->fieldOrder();
249 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
258 ::avro::decode(d, v.
info);
269 ::avro::decode(d, v.
info);
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
MergeRecordsRequest()
Constructs a MergeRecordsRequest object with default parameter values.
A set of output parameters for const.
std::vector< std::string > sourceTableNames
A set of input parameters for const.
std::vector< std::map< std::string, std::string > > fieldMaps
std::map< std::string, std::string > info
MergeRecordsResponse()
Constructs a MergeRecordsResponse object with default parameter values.