6 #ifndef __GET_RECORDS_H__
7 #define __GET_RECORDS_H__
39 options(std::map<std::string, std::string>())
102 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
178 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_):
197 template<>
struct codec_traits<gpudb::GetRecordsRequest>
202 ::avro::encode(e, v.
offset);
203 ::avro::encode(e, v.
limit);
210 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
212 const std::vector<size_t> fo = rd->fieldOrder();
214 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
223 ::avro::decode(d, v.
offset);
227 ::avro::decode(d, v.
limit);
246 ::avro::decode(d, v.
offset);
247 ::avro::decode(d, v.
limit);
289 info(std::map<std::string, std::string>())
300 std::map<std::string, std::string>
info;
306 template<>
struct codec_traits<gpudb::RawGetRecordsResponse>
317 ::avro::encode(e, v.
info);
322 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
324 const std::vector<size_t> fo = rd->fieldOrder();
326 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
359 ::avro::decode(d, v.
info);
376 ::avro::decode(d, v.
info);
415 data(std::vector<T>()),
418 info(std::map<std::string, std::string>())
428 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