6 #ifndef __GET_RECORDS_BY_COLUMN_H__
7 #define __GET_RECORDS_BY_COLUMN_H__
9 #include "../GenericRecord.hpp"
60 options(std::map<std::string, std::string>())
138 GetRecordsByColumnRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
231 GetRecordsByColumnRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
252 template<>
struct codec_traits<gpudb::GetRecordsByColumnRequest>
258 ::avro::encode(e, v.
offset);
259 ::avro::encode(e, v.
limit);
266 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
268 const std::vector<size_t> fo = rd->fieldOrder();
270 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
283 ::avro::decode(d, v.
offset);
287 ::avro::decode(d, v.
limit);
307 ::avro::decode(d, v.
offset);
308 ::avro::decode(d, v.
limit);
366 info(std::map<std::string, std::string>())
376 std::map<std::string, std::string>
info;
382 template<>
struct codec_traits<gpudb::RawGetRecordsByColumnResponse>
392 ::avro::encode(e, v.
info);
397 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
399 const std::vector<size_t> fo = rd->fieldOrder();
401 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
430 ::avro::decode(d, v.
info);
446 ::avro::decode(d, v.
info);
501 info(std::map<std::string, std::string>()),
508 std::vector<gpudb::GenericRecord>
data;
511 std::map<std::string, std::string>
info;
boost::shared_ptr< Type > gpudb_type_ptr_t
A set of output parameters for const.
GetRecordsByColumnRequest()
Constructs a GetRecordsByColumnRequest object with default parameter values.
GetRecordsByColumnRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
Constructs a GetRecordsByColumnRequest object with the specified parameters.
std::vector< gpudb::GenericRecord > data
GetRecordsByColumnResponse()
Constructs a GetRecordsByColumnResponse object with default parameter values.
int64_t totalNumberOfRecords
std::string jsonEncodedResponse
GetRecordsByColumnRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs a GetRecordsByColumnRequest object with the specified parameters.
std::map< std::string, std::string > info
gpudb_type_ptr_t dataTypePtr
std::vector< uint8_t > binaryEncodedResponse
std::map< std::string, std::string > info
A set of output parameters for const.
RawGetRecordsByColumnResponse()
Constructs a RawGetRecordsByColumnResponse object with default parameter values.
std::vector< std::string > columnNames
int64_t totalNumberOfRecords
A set of input parameters for const.
std::string responseSchemaStr
std::map< std::string, std::string > options
std::string responseSchemaStr