6 #ifndef __AGGREGATE_UNIQUE_H__
7 #define __AGGREGATE_UNIQUE_H__
9 #include "../GenericRecord.hpp"
70 options(std::map<std::string, std::string>())
210 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_):
367 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_):
388 template<>
struct codec_traits<gpudb::AggregateUniqueRequest>
394 ::avro::encode(e, v.
offset);
395 ::avro::encode(e, v.
limit);
402 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
404 const std::vector<size_t> fo = rd->fieldOrder();
406 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
419 ::avro::decode(d, v.
offset);
423 ::avro::decode(d, v.
limit);
443 ::avro::decode(d, v.
offset);
444 ::avro::decode(d, v.
limit);
511 info(std::map<std::string, std::string>())
520 std::map<std::string, std::string>
info;
526 template<>
struct codec_traits<gpudb::RawAggregateUniqueResponse>
535 ::avro::encode(e, v.
info);
540 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
542 const std::vector<size_t> fo = rd->fieldOrder();
544 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
569 ::avro::decode(d, v.
info);
584 ::avro::decode(d, v.
info);
648 info(std::map<std::string, std::string>()),
655 std::vector<gpudb::GenericRecord>
data;
657 std::map<std::string, std::string>
info;
std::string responseSchemaStr
AggregateUniqueRequest()
Constructs an AggregateUniqueRequest object with default parameter values.
boost::shared_ptr< Type > gpudb_type_ptr_t
std::vector< gpudb::GenericRecord > data
std::string responseSchemaStr
std::map< std::string, std::string > info
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.
gpudb_type_ptr_t dataTypePtr
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
std::map< std::string, std::string > info
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.