6 #ifndef __GET_RECORDS_H__
7 #define __GET_RECORDS_H__
41 options(std::map<std::string, std::string>())
110 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
193 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_):
212 template<>
struct codec_traits<gpudb::GetRecordsRequest>
217 ::avro::encode(e, v.
offset);
218 ::avro::encode(e, v.
limit);
225 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
227 const std::vector<size_t> fo = rd->fieldOrder();
229 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
238 ::avro::decode(d, v.
offset);
242 ::avro::decode(d, v.
limit);
261 ::avro::decode(d, v.
offset);
262 ::avro::decode(d, v.
limit);
306 info(std::map<std::string, std::string>())
317 std::map<std::string, std::string>
info;
323 template<>
struct codec_traits<gpudb::RawGetRecordsResponse>
334 ::avro::encode(e, v.
info);
339 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
341 const std::vector<size_t> fo = rd->fieldOrder();
343 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
376 ::avro::decode(d, v.
info);
393 ::avro::decode(d, v.
info);
434 data(std::vector<T>()),
437 info(std::map<std::string, std::string>())
447 std::map<std::string, std::string>
info;
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
std::map< std::string, std::string > info
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
std::map< std::string, std::string > info