6 #ifndef __GET_RECORDS_BY_COLUMN_H__
7 #define __GET_RECORDS_BY_COLUMN_H__
9 #include "../GenericRecord.hpp"
49 options(std::map<std::string, std::string>())
104 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_):
172 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_):
193 template<>
struct codec_traits<gpudb::GetRecordsByColumnRequest>
199 ::avro::encode(e, v.
offset);
200 ::avro::encode(e, v.
limit);
207 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
209 const std::vector<size_t> fo = rd->fieldOrder();
211 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
224 ::avro::decode(d, v.
offset);
228 ::avro::decode(d, v.
limit);
248 ::avro::decode(d, v.
offset);
249 ::avro::decode(d, v.
limit);
310 template<>
struct codec_traits<gpudb::RawGetRecordsByColumnResponse>
324 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
326 const std::vector<size_t> fo = rd->fieldOrder();
328 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
417 std::vector<gpudb::GenericRecord>
data;
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::vector< uint8_t > binaryEncodedResponse
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