6 #ifndef __GET_RECORDS_H__ 7 #define __GET_RECORDS_H__ 36 options(std::map<std::string, std::string>())
118 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
223 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_):
321 template<>
struct codec_traits<
gpudb::GetRecordsRequest>
326 ::avro::encode(e, v.
offset);
327 ::avro::encode(e, v.
limit);
334 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
336 const std::vector<size_t> fo = rd->fieldOrder();
338 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
347 ::avro::decode(d, v.
offset);
351 ::avro::decode(d, v.
limit);
370 ::avro::decode(d, v.
offset);
371 ::avro::decode(d, v.
limit);
399 info(std::map<std::string, std::string>())
445 std::map<std::string, std::string>
info;
451 template<>
struct codec_traits<
gpudb::RawGetRecordsResponse>
462 ::avro::encode(e, v.
info);
467 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
469 const std::vector<size_t> fo = rd->fieldOrder();
471 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
504 ::avro::decode(d, v.
info);
521 ::avro::decode(d, v.
info);
545 data(std::vector<T>()),
548 info(std::map<std::string, std::string>())
584 std::map<std::string, std::string>
info;
588 #endif // __GET_RECORDS_H__
std::vector< T > data
If the encoding was 'binary', then this list contains the binary encoded records retrieved from the t...
std::string typeSchema
Avro schema of data or recordsJson.
GetRecordsRequest()
Constructs a GetRecordsRequest object with default parameters.
std::string encoding
Specifies the encoding for returned records; one of binary, json, or geojson.
int64_t limit
A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to ...
std::string tableName
Name of the table or view from which the records will be fetched, in [ schema_name....
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.
std::string tableName
Value of tableName.
int64_t offset
A positive integer indicating the number of initial results to skip (this can be useful for paging th...
RawGetRecordsResponse()
Constructs a RawGetRecordsResponse object with default parameters.
std::string tableName
Value of tableName.
std::string typeSchema
Avro schema of recordsBinary or recordsJson.
bool hasMoreRecords
Too many records.
A set of results returned by GPUdb::getRecordsRaw.
int64_t totalNumberOfRecords
Total/Filtered number of records.
A set of results returned by GPUdb::getRecords.
GetRecordsResponse()
Constructs a GetRecordsResponse object with default parameters.
std::vector< std::string > recordsJson
If the encoding was 'json', then this list contains the JSON encoded records retrieved from the table...
std::map< std::string, std::string > info
Additional information.
A set of parameters for GPUdb::getRecords.
std::map< std::string, std::string > options
int64_t totalNumberOfRecords
Total/Filtered number of records.
bool hasMoreRecords
Too many records.
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
If the encoding was 'binary', then this list contains the binary encoded records retrieved from the t...
std::map< std::string, std::string > info
Additional information.