6 #ifndef __AGGREGATE_GROUP_BY_H__ 7 #define __AGGREGATE_GROUP_BY_H__ 9 #include "../GenericRecord.hpp" 98 options(std::map<std::string, std::string>())
486 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_):
895 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_):
1212 template<>
struct codec_traits<
gpudb::AggregateGroupByRequest>
1218 ::avro::encode(e, v.
offset);
1219 ::avro::encode(e, v.
limit);
1226 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1228 const std::vector<size_t> fo = rd->fieldOrder();
1230 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1243 ::avro::decode(d, v.
offset);
1247 ::avro::decode(d, v.
limit);
1267 ::avro::decode(d, v.
offset);
1268 ::avro::decode(d, v.
limit);
1295 info(std::map<std::string, std::string>())
1337 std::map<std::string, std::string>
info;
1343 template<>
struct codec_traits<
gpudb::RawAggregateGroupByResponse>
1352 ::avro::encode(e, v.
info);
1357 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1359 const std::vector<size_t> fo = rd->fieldOrder();
1361 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1386 ::avro::decode(d, v.
info);
1401 ::avro::decode(d, v.
info);
1425 info(std::map<std::string, std::string>()),
1438 std::vector<gpudb::GenericRecord>
data;
1462 std::map<std::string, std::string>
info;
1468 #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.