6 #ifndef __APPEND_RECORDS_H__
7 #define __APPEND_RECORDS_H__
32 fieldMap(std::map<std::string, std::string>()),
33 options(std::map<std::string, std::string>())
118 AppendRecordsRequest(
const std::string& tableName_,
const std::string& sourceTableName_,
const std::map<std::string, std::string>& fieldMap_,
const std::map<std::string, std::string>& options_):
135 template<>
struct codec_traits<gpudb::AppendRecordsRequest>
147 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
149 const std::vector<size_t> fo = rd->fieldOrder();
151 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
209 info(std::map<std::string, std::string>())
214 std::map<std::string, std::string>
info;
220 template<>
struct codec_traits<gpudb::AppendRecordsResponse>
225 ::avro::encode(e, v.
info);
230 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
232 const std::vector<size_t> fo = rd->fieldOrder();
234 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
243 ::avro::decode(d, v.
info);
254 ::avro::decode(d, v.
info);
AppendRecordsResponse()
Constructs an AppendRecordsResponse object with default parameter values.
A set of output parameters for const.
std::map< std::string, std::string > fieldMap
std::map< std::string, std::string > info
A set of input parameters for const.
AppendRecordsRequest()
Constructs an AppendRecordsRequest object with default parameter values.
AppendRecordsRequest(const std::string &tableName_, const std::string &sourceTableName_, const std::map< std::string, std::string > &fieldMap_, const std::map< std::string, std::string > &options_)
Constructs an AppendRecordsRequest object with the specified parameters.
std::map< std::string, std::string > options
std::string sourceTableName