6 #ifndef __GET_RECORDS_H__ 7 #define __GET_RECORDS_H__ 36 options(std::map<std::string, std::string>())
120 GetRecordsRequest(
const std::string& tableName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
225 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_):
322 template<>
struct codec_traits<
gpudb::GetRecordsRequest>
327 ::avro::encode(e, v.
offset);
328 ::avro::encode(e, v.
limit);
335 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
337 const std::vector<size_t> fo = rd->fieldOrder();
339 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
348 ::avro::decode(d, v.
offset);
352 ::avro::decode(d, v.
limit);
371 ::avro::decode(d, v.
offset);
372 ::avro::decode(d, v.
limit);
400 info(std::map<std::string, std::string>())
446 std::map<std::string, std::string>
info;
452 template<>
struct codec_traits<
gpudb::RawGetRecordsResponse>
463 ::avro::encode(e, v.
info);
468 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
470 const std::vector<size_t> fo = rd->fieldOrder();
472 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
505 ::avro::decode(d, v.
info);
522 ::avro::decode(d, v.
info);
546 data(std::vector<T>()),
549 info(std::map<std::string, std::string>())
585 std::map<std::string, std::string>
info;
589 #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.