6 #ifndef __GET_RECORDS_FROM_COLLECTION_H__
7 #define __GET_RECORDS_FROM_COLLECTION_H__
38 options(std::map<std::string, std::string>())
139 GetRecordsFromCollectionRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
158 template<>
struct codec_traits<gpudb::GetRecordsFromCollectionRequest>
163 ::avro::encode(e, v.
offset);
164 ::avro::encode(e, v.
limit);
171 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
173 const std::vector<size_t> fo = rd->fieldOrder();
175 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
184 ::avro::decode(d, v.
offset);
188 ::avro::decode(d, v.
limit);
207 ::avro::decode(d, v.
offset);
208 ::avro::decode(d, v.
limit);
246 info(std::map<std::string, std::string>())
255 std::map<std::string, std::string>
info;
261 template<>
struct codec_traits<gpudb::RawGetRecordsFromCollectionResponse>
270 ::avro::encode(e, v.
info);
275 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
277 const std::vector<size_t> fo = rd->fieldOrder();
279 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
304 ::avro::decode(d, v.
info);
319 ::avro::decode(d, v.
info);
355 data(std::vector<T>()),
357 info(std::map<std::string, std::string>())
365 std::map<std::string, std::string>
info;
std::vector< std::string > typeNames
std::map< std::string, std::string > info
RawGetRecordsFromCollectionResponse()
Constructs a RawGetRecordsFromCollectionResponse object with default parameter values.
GetRecordsFromCollectionRequest(const std::string &tableName_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs a GetRecordsFromCollectionRequest object with the specified parameters.
std::map< std::string, std::string > info
std::vector< std::string > recordsJson
std::vector< std::string > recordIds
std::vector< std::string > recordIds
std::vector< std::string > typeNames
A set of output parameters for const.
A set of input parameters for const.
A set of output parameters for const.
GetRecordsFromCollectionRequest(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 GetRecordsFromCollectionRequest object with the specified parameters.
GetRecordsFromCollectionRequest()
Constructs a GetRecordsFromCollectionRequest object with default parameter values.
GetRecordsFromCollectionResponse()
Constructs a GetRecordsFromCollectionResponse object with default parameter values.
std::vector< std::vector< uint8_t > > recordsBinary
std::map< std::string, std::string > options