6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 98 options(std::map<std::string, std::string>())
278 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_):
475 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_):
502 ::avro::encode(e, v.
offset);
503 ::avro::encode(e, v.
limit);
510 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
512 const std::vector<size_t> fo = rd->fieldOrder();
514 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
527 ::avro::decode(d, v.
offset);
531 ::avro::decode(d, v.
limit);
551 ::avro::decode(d, v.
offset);
552 ::avro::decode(d, v.
limit);
642 responseSchemaStr(std::string()),
643 binaryEncodedResponse(std::vector<uint8_t>()),
644 jsonEncodedResponse(std::string()),
645 totalNumberOfRecords(int64_t()),
646 hasMoreRecords(bool())
673 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
675 const std::vector<size_t> fo = rd->fieldOrder();
677 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
800 responseSchemaStr(std::string()),
802 totalNumberOfRecords(int64_t()),
803 hasMoreRecords(bool()),
809 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.
boost::shared_ptr< Type > gpudb_type_ptr_t
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.
gpudb_type_ptr_t dataTypePtr
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