6 #ifndef __APPEND_RECORDS_H__ 7 #define __APPEND_RECORDS_H__ 30 fieldMap(std::map<std::string, std::string>()),
31 options(std::map<std::string, std::string>())
224 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_):
378 template<>
struct codec_traits<
gpudb::AppendRecordsRequest>
390 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
392 const std::vector<size_t> fo = rd->fieldOrder();
394 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
444 info(std::map<std::string, std::string>())
453 std::map<std::string, std::string>
info;
459 template<>
struct codec_traits<
gpudb::AppendRecordsResponse>
464 ::avro::encode(e, v.
info);
469 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
471 const std::vector<size_t> fo = rd->fieldOrder();
473 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
482 ::avro::decode(d, v.
info);
493 ::avro::decode(d, v.
info);
499 #endif // __APPEND_RECORDS_H__
AppendRecordsResponse()
Constructs an AppendRecordsResponse object with default parameters.
A set of results returned by GPUdb::appendRecords.
std::map< std::string, std::string > fieldMap
Contains the mapping of column names from the target table (specified by tableName) as the keys,...
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::appendRecords.
AppendRecordsRequest()
Constructs an AppendRecordsRequest object with default parameters.
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
Optional parameters.
std::string tableName
The table name for the records to be appended, in [ schema_name.
std::string sourceTableName
The source table name to get records from, in [ schema_name.