6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 53 options(std::map<std::string, std::string>())
99 columnNames(columnNames),
151 tableName(tableName),
152 columnNames(columnNames),
177 ::avro::encode(e, v.
offset);
178 ::avro::encode(e, v.
limit);
185 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
187 const std::vector<size_t> fo = rd->fieldOrder();
189 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
202 ::avro::decode(d, v.
offset);
206 ::avro::decode(d, v.
limit);
226 ::avro::decode(d, v.
offset);
227 ::avro::decode(d, v.
limit);
272 responseSchemaStr(std::string()),
273 binaryEncodedResponse(std::vector<uint8_t>()),
274 jsonEncodedResponse(std::string()),
275 totalNumberOfRecords(int64_t()),
276 hasMoreRecords(bool())
303 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
305 const std::vector<size_t> fo = rd->fieldOrder();
307 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
385 responseSchemaStr(std::string()),
387 totalNumberOfRecords(int64_t()),
388 hasMoreRecords(bool())
393 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
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.
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.
std::map< std::string, std::string > options
std::vector< gpudb::GenericRecord > data
std::string responseSchemaStr