6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 98 options(std::map<std::string, std::string>())
458 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_):
839 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_):
1133 template<>
struct codec_traits<
gpudb::AggregateGroupByRequest>
1139 ::avro::encode(e, v.
offset);
1140 ::avro::encode(e, v.
limit);
1147 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1149 const std::vector<size_t> fo = rd->fieldOrder();
1151 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1164 ::avro::decode(d, v.
offset);
1168 ::avro::decode(d, v.
limit);
1188 ::avro::decode(d, v.
offset);
1189 ::avro::decode(d, v.
limit);
1216 info(std::map<std::string, std::string>())
1258 std::map<std::string, std::string>
info;
1264 template<>
struct codec_traits<
gpudb::RawAggregateGroupByResponse>
1273 ::avro::encode(e, v.
info);
1278 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1280 const std::vector<size_t> fo = rd->fieldOrder();
1282 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1307 ::avro::decode(d, v.
info);
1322 ::avro::decode(d, v.
info);
1346 info(std::map<std::string, std::string>()),
1359 std::vector<gpudb::GenericRecord>
data;
1383 std::map<std::string, std::string>
info;
1389 #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.