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_):
227 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_):
325 template<>
struct codec_traits<
gpudb::GetRecordsRequest>
330 ::avro::encode(e, v.
offset);
331 ::avro::encode(e, v.
limit);
338 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
340 const std::vector<size_t> fo = rd->fieldOrder();
342 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
351 ::avro::decode(d, v.
offset);
355 ::avro::decode(d, v.
limit);
374 ::avro::decode(d, v.
offset);
375 ::avro::decode(d, v.
limit);
403 info(std::map<std::string, std::string>())
449 std::map<std::string, std::string>
info;
455 template<>
struct codec_traits<
gpudb::RawGetRecordsResponse>
466 ::avro::encode(e, v.
info);
471 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
473 const std::vector<size_t> fo = rd->fieldOrder();
475 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
508 ::avro::decode(d, v.
info);
525 ::avro::decode(d, v.
info);
549 data(std::vector<T>()),
552 info(std::map<std::string, std::string>())
588 std::map<std::string, std::string>
info;
592 #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.