6 #ifndef __AGGREGATE_UNIQUE_H__
7 #define __AGGREGATE_UNIQUE_H__
9 #include "../GenericRecord.hpp"
63 options(std::map<std::string, std::string>())
135 AggregateUniqueRequest(
const std::string& tableName_,
const std::string& columnName_,
const int64_t offset_,
const int64_t limit_,
const std::map<std::string, std::string>& options_):
222 AggregateUniqueRequest(
const std::string& tableName_,
const std::string& columnName_,
const int64_t offset_,
const int64_t limit_,
const std::string& encoding_,
const std::map<std::string, std::string>& options_):
243 template<>
struct codec_traits<gpudb::AggregateUniqueRequest>
249 ::avro::encode(e, v.
offset);
250 ::avro::encode(e, v.
limit);
257 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
259 const std::vector<size_t> fo = rd->fieldOrder();
261 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
274 ::avro::decode(d, v.
offset);
278 ::avro::decode(d, v.
limit);
298 ::avro::decode(d, v.
offset);
299 ::avro::decode(d, v.
limit);
372 template<>
struct codec_traits<gpudb::RawAggregateUniqueResponse>
385 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
387 const std::vector<size_t> fo = rd->fieldOrder();
389 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
486 std::vector<gpudb::GenericRecord>
data;
std::string responseSchemaStr
AggregateUniqueRequest()
Constructs an AggregateUniqueRequest object with default parameter values.
std::vector< gpudb::GenericRecord > data
std::string responseSchemaStr
A set of input parameters for const.
A set of output parameters for const.
AggregateUniqueResponse()
Constructs an AggregateUniqueResponse object with default parameter values.
std::string jsonEncodedResponse
RawAggregateUniqueResponse()
Constructs a RawAggregateUniqueResponse object with default parameter values.
AggregateUniqueRequest(const std::string &tableName_, const std::string &columnName_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
Constructs an AggregateUniqueRequest object with the specified parameters.
std::map< std::string, std::string > options
std::vector< uint8_t > binaryEncodedResponse
A set of output parameters for const.
AggregateUniqueRequest(const std::string &tableName_, const std::string &columnName_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
Constructs an AggregateUniqueRequest object with the specified parameters.