6 #ifndef __AGGREGATE_GROUP_BY_H__
7 #define __AGGREGATE_GROUP_BY_H__
9 #include "../GenericRecord.hpp"
79 options(std::map<std::string, std::string>())
189 AggregateGroupByRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
314 AggregateGroupByRequest(
const std::string& tableName_,
const std::vector<std::string>& columnNames_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
335 template<>
struct codec_traits<gpudb::AggregateGroupByRequest>
341 ::avro::encode(e, v.
offset);
342 ::avro::encode(e, v.
limit);
349 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
351 const std::vector<size_t> fo = rd->fieldOrder();
353 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
366 ::avro::decode(d, v.
offset);
370 ::avro::decode(d, v.
limit);
390 ::avro::decode(d, v.
offset);
391 ::avro::decode(d, v.
limit);
480 template<>
struct codec_traits<gpudb::RawAggregateGroupByResponse>
493 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
495 const std::vector<size_t> fo = rd->fieldOrder();
497 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
609 std::vector<gpudb::GenericRecord>
data;
A set of output parameters for const.
AggregateGroupByRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs an AggregateGroupByRequest object with the specified parameters.
int64_t totalNumberOfRecords
A set of input parameters for const.
AggregateGroupByResponse()
Constructs an AggregateGroupByResponse object with default parameter values.
std::vector< std::string > columnNames
AggregateGroupByRequest(const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
Constructs an AggregateGroupByRequest object with the specified parameters.
int64_t totalNumberOfRecords
std::string jsonEncodedResponse
std::vector< uint8_t > binaryEncodedResponse
AggregateGroupByRequest()
Constructs an AggregateGroupByRequest object with default parameter values.
A set of output parameters for const.
std::string responseSchemaStr
RawAggregateGroupByResponse()
Constructs a RawAggregateGroupByResponse object with default parameter values.
std::map< std::string, std::string > options
std::vector< gpudb::GenericRecord > data
std::string responseSchemaStr