6 #ifndef __GET_RECORDS_H__ 7 #define __GET_RECORDS_H__ 39 options(std::map<std::string, std::string>())
95 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
163 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_):
187 ::avro::encode(e, v.
offset);
188 ::avro::encode(e, v.
limit);
195 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
197 const std::vector<size_t> fo = rd->fieldOrder();
199 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
208 ::avro::decode(d, v.
offset);
212 ::avro::decode(d, v.
limit);
231 ::avro::decode(d, v.
offset);
232 ::avro::decode(d, v.
limit);
268 typeName(std::string()),
269 typeSchema(std::string()),
270 recordsBinary(std::vector<std::vector<uint8_t> >()),
271 recordsJson(std::vector<std::string>()),
272 totalNumberOfRecords(int64_t()),
273 hasMoreRecords(bool())
304 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
306 const std::vector<size_t> fo = rd->fieldOrder();
308 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
390 typeName(std::string()),
391 typeSchema(std::string()),
392 data(std::vector<T>()),
393 totalNumberOfRecords(int64_t()),
394 hasMoreRecords(bool())
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 getRecordsRaw(const GetRecordsRequest&) const.
int64_t totalNumberOfRecords
A set of output parameters for getRecords(const GetRecordsRequest&) const.
GetRecordsResponse()
Constructs a GetRecordsResponse object with default parameter values.
std::vector< std::string > recordsJson
A set of input parameters for getRecordsRaw(const GetRecordsRequest&) 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