6 #ifndef __GET_RECORDS_H__
7 #define __GET_RECORDS_H__
39 options(std::map<std::string, std::string>())
88 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
147 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
166 template<>
struct codec_traits<gpudb::GetRecordsRequest>
171 ::avro::encode(e, v.
offset);
172 ::avro::encode(e, v.
limit);
179 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
181 const std::vector<size_t> fo = rd->fieldOrder();
183 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
192 ::avro::decode(d, v.
offset);
196 ::avro::decode(d, v.
limit);
215 ::avro::decode(d, v.
offset);
216 ::avro::decode(d, v.
limit);
273 template<>
struct codec_traits<gpudb::RawGetRecordsResponse>
288 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
290 const std::vector<size_t> fo = rd->fieldOrder();
292 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
376 data(std::vector<T>()),
GetRecordsRequest()
Constructs a GetRecordsRequest object with default parameter values.
GetRecordsRequest(const std::string &tableName_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
Constructs a GetRecordsRequest object with the specified parameters.
RawGetRecordsResponse()
Constructs a RawGetRecordsResponse object with default parameter values.
A set of output parameters for const.
int64_t totalNumberOfRecords
A set of output parameters for const.
GetRecordsResponse()
Constructs a GetRecordsResponse object with default parameter values.
std::vector< std::string > recordsJson
A set of input parameters for const.
std::map< std::string, std::string > options
int64_t totalNumberOfRecords
GetRecordsRequest(const std::string &tableName_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs a GetRecordsRequest object with the specified parameters.
std::vector< std::vector< uint8_t > > recordsBinary