6 #ifndef __AGGREGATE_GROUP_BY_H__
7 #define __AGGREGATE_GROUP_BY_H__
9 #include "../GenericRecord.hpp"
98 options(std::map<std::string, std::string>())
288 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_):
495 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_):
516 template<>
struct codec_traits<gpudb::AggregateGroupByRequest>
522 ::avro::encode(e, v.
offset);
523 ::avro::encode(e, v.
limit);
530 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
532 const std::vector<size_t> fo = rd->fieldOrder();
534 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
547 ::avro::decode(d, v.
offset);
551 ::avro::decode(d, v.
limit);
571 ::avro::decode(d, v.
offset);
572 ::avro::decode(d, v.
limit);
667 info(std::map<std::string, std::string>())
676 std::map<std::string, std::string>
info;
682 template<>
struct codec_traits<gpudb::RawAggregateGroupByResponse>
691 ::avro::encode(e, v.
info);
696 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
698 const std::vector<size_t> fo = rd->fieldOrder();
700 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
725 ::avro::decode(d, v.
info);
740 ::avro::decode(d, v.
info);
832 info(std::map<std::string, std::string>()),
838 std::vector<gpudb::GenericRecord>
data;
841 std::map<std::string, std::string>
info;
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.
boost::shared_ptr< Type > gpudb_type_ptr_t
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
std::map< std::string, std::string > info
AggregateGroupByRequest()
Constructs an AggregateGroupByRequest object with default parameter values.
A set of output parameters for const.
gpudb_type_ptr_t dataTypePtr
std::string responseSchemaStr
RawAggregateGroupByResponse()
Constructs a RawAggregateGroupByResponse object with default parameter values.
std::map< std::string, std::string > info
std::map< std::string, std::string > options
std::vector< gpudb::GenericRecord > data
std::string responseSchemaStr