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>())
212 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_):
358 template<>
struct codec_traits<
gpudb::AppendRecordsRequest>
370 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
372 const std::vector<size_t> fo = rd->fieldOrder();
374 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
424 info(std::map<std::string, std::string>())
433 std::map<std::string, std::string>
info;
439 template<>
struct codec_traits<
gpudb::AppendRecordsResponse>
444 ::avro::encode(e, v.
info);
449 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
451 const std::vector<size_t> fo = rd->fieldOrder();
453 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
462 ::avro::decode(d, v.
info);
473 ::avro::decode(d, v.
info);
479 #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.