6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 95 options(std::map<std::string, std::string>())
483 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_):
892 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_):
1209 template<>
struct codec_traits<
gpudb::AggregateGroupByRequest>
1215 ::avro::encode(e, v.
offset);
1216 ::avro::encode(e, v.
limit);
1223 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1225 const std::vector<size_t> fo = rd->fieldOrder();
1227 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1240 ::avro::decode(d, v.
offset);
1244 ::avro::decode(d, v.
limit);
1264 ::avro::decode(d, v.
offset);
1265 ::avro::decode(d, v.
limit);
1292 info(std::map<std::string, std::string>())
1334 std::map<std::string, std::string>
info;
1340 template<>
struct codec_traits<
gpudb::RawAggregateGroupByResponse>
1349 ::avro::encode(e, v.
info);
1354 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1356 const std::vector<size_t> fo = rd->fieldOrder();
1358 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1383 ::avro::decode(d, v.
info);
1398 ::avro::decode(d, v.
info);
1422 info(std::map<std::string, std::string>()),
1435 std::vector<gpudb::GenericRecord>
data;
1459 std::map<std::string, std::string>
info;
1465 #endif // __AGGREGATE_GROUP_BY_H__ A set of results returned by GPUdb::aggregateGroupByRaw.
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 limit
A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to ...
int64_t totalNumberOfRecords
Total/Filtered number of records.
bool hasMoreRecords
Too many records.
A set of parameters for GPUdb::aggregateGroupBy.
std::string tableName
Name of an existing table or view on which the operation will be performed, in [ schema_name....
AggregateGroupByResponse()
Constructs an AggregateGroupByResponse object with default parameters.
std::vector< std::string > columnNames
List of one or more column names, expressions, and aggregate expressions.
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::string encoding
Specifies the encoding for returned records.
int64_t totalNumberOfRecords
Total/Filtered number of records.
std::string jsonEncodedResponse
Avro JSON encoded response.
bool hasMoreRecords
Too many records.
std::vector< uint8_t > binaryEncodedResponse
Avro binary encoded response.
std::map< std::string, std::string > info
Additional information.
AggregateGroupByRequest()
Constructs an AggregateGroupByRequest object with default parameters.
A set of results returned by GPUdb::aggregateGroupBy.
gpudb_type_ptr_t dataTypePtr
std::string responseSchemaStr
Avro schema of binaryEncodedResponse or jsonEncodedResponse.
RawAggregateGroupByResponse()
Constructs a RawAggregateGroupByResponse object with default parameters.
int64_t offset
A positive integer indicating the number of initial results to skip (this can be useful for paging th...
std::map< std::string, std::string > info
Additional information.
std::map< std::string, std::string > options
Optional parameters.
std::vector< gpudb::GenericRecord > data
Avro binary encoded response.
std::string responseSchemaStr
Avro schema of data or jsonEncodedResponse.