6 #ifndef __GET_RECORDS_FROM_COLLECTION_H__
7 #define __GET_RECORDS_FROM_COLLECTION_H__
38 options(std::map<std::string, std::string>())
123 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_):
142 template<>
struct codec_traits<gpudb::GetRecordsFromCollectionRequest>
147 ::avro::encode(e, v.
offset);
148 ::avro::encode(e, v.
limit);
155 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
157 const std::vector<size_t> fo = rd->fieldOrder();
159 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
168 ::avro::decode(d, v.
offset);
172 ::avro::decode(d, v.
limit);
191 ::avro::decode(d, v.
offset);
192 ::avro::decode(d, v.
limit);
243 template<>
struct codec_traits<gpudb::RawGetRecordsFromCollectionResponse>
256 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
258 const std::vector<size_t> fo = rd->fieldOrder();
260 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
331 data(std::vector<T>()),
std::vector< std::string > typeNames
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::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