6 #ifndef __EXECUTE_SQL_H__
7 #define __EXECUTE_SQL_H__
9 #include "../GenericRecord.hpp"
36 data(std::vector<std::vector<uint8_t> >()),
37 options(std::map<std::string, std::string>())
282 ExecuteSqlRequest(
const std::string& statement_,
const int64_t offset_,
const int64_t limit_,
const std::string& requestSchemaStr_,
const std::vector<std::vector<uint8_t> >& data_,
const std::map<std::string, std::string>& options_):
542 ExecuteSqlRequest(
const std::string& statement_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::string& requestSchemaStr_,
const std::vector<std::vector<uint8_t> >& data_,
const std::map<std::string, std::string>& options_):
558 std::vector<std::vector<uint8_t> >
data;
565 template<>
struct codec_traits<gpudb::ExecuteSqlRequest>
570 ::avro::encode(e, v.
offset);
571 ::avro::encode(e, v.
limit);
574 ::avro::encode(e, v.
data);
580 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
582 const std::vector<size_t> fo = rd->fieldOrder();
584 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
593 ::avro::decode(d, v.
offset);
597 ::avro::decode(d, v.
limit);
609 ::avro::decode(d, v.
data);
624 ::avro::decode(d, v.
offset);
625 ::avro::decode(d, v.
limit);
628 ::avro::decode(d, v.
data);
662 info(std::map<std::string, std::string>())
673 std::map<std::string, std::string>
info;
679 template<>
struct codec_traits<gpudb::RawExecuteSqlResponse>
690 ::avro::encode(e, v.
info);
695 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
697 const std::vector<size_t> fo = rd->fieldOrder();
699 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
732 ::avro::decode(d, v.
info);
749 ::avro::decode(d, v.
info);
781 info(std::map<std::string, std::string>()),
788 std::vector<gpudb::GenericRecord>
data;
792 std::map<std::string, std::string>
info;
gpudb_type_ptr_t dataTypePtr
ExecuteSqlRequest()
Constructs an ExecuteSqlRequest object with default parameter values.
ExecuteSqlRequest(const std::string &statement_, const int64_t offset_, const int64_t limit_, const std::string &requestSchemaStr_, const std::vector< std::vector< uint8_t > > &data_, const std::map< std::string, std::string > &options_)
Constructs an ExecuteSqlRequest object with the specified parameters.
boost::shared_ptr< Type > gpudb_type_ptr_t
std::map< std::string, std::string > options
std::vector< gpudb::GenericRecord > data
std::string requestSchemaStr
int64_t totalNumberOfRecords
ExecuteSqlResponse()
Constructs an ExecuteSqlResponse object with default parameter values.
std::string jsonEncodedResponse
std::vector< std::vector< uint8_t > > data
A set of output parameters for const.
int64_t totalNumberOfRecords
A set of output parameters for const.
std::string responseSchemaStr
A set of input parameters for const.
std::map< std::string, std::string > info
ExecuteSqlRequest(const std::string &statement_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::string &requestSchemaStr_, const std::vector< std::vector< uint8_t > > &data_, const std::map< std::string, std::string > &options_)
Constructs an ExecuteSqlRequest object with the specified parameters.
std::map< std::string, std::string > info
RawExecuteSqlResponse()
Constructs a RawExecuteSqlResponse object with default parameter values.
std::string responseSchemaStr
std::vector< uint8_t > binaryEncodedResponse