6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 79 options(std::map<std::string, std::string>())
216 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_):
370 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_):
397 ::avro::encode(e, v.
offset);
398 ::avro::encode(e, v.
limit);
405 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
407 const std::vector<size_t> fo = rd->fieldOrder();
409 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
422 ::avro::decode(d, v.
offset);
426 ::avro::decode(d, v.
limit);
446 ::avro::decode(d, v.
offset);
447 ::avro::decode(d, v.
limit);
518 responseSchemaStr(std::string()),
519 binaryEncodedResponse(std::vector<uint8_t>()),
520 jsonEncodedResponse(std::string()),
521 totalNumberOfRecords(int64_t()),
522 hasMoreRecords(bool())
549 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
551 const std::vector<size_t> fo = rd->fieldOrder();
553 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
657 responseSchemaStr(std::string()),
659 totalNumberOfRecords(int64_t()),
660 hasMoreRecords(bool())
665 std::vector<gpudb::GenericRecord>
data;
A set of output parameters for aggregateGroupByRaw(const AggregateGroupByRequest&) 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 aggregateGroupByRaw(const AggregateGroupByRequest&) 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 aggregateGroupBy(const AggregateGroupByRequest&) 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