6 #ifndef __AGGREGATE_UNIQUE_H__
7 #define __AGGREGATE_UNIQUE_H__
9 #include "../GenericRecord.hpp"
63 options(std::map<std::string, std::string>())
173 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_):
300 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_):
321 template<>
struct codec_traits<gpudb::AggregateUniqueRequest>
327 ::avro::encode(e, v.
offset);
328 ::avro::encode(e, v.
limit);
335 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
337 const std::vector<size_t> fo = rd->fieldOrder();
339 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
352 ::avro::decode(d, v.
offset);
356 ::avro::decode(d, v.
limit);
376 ::avro::decode(d, v.
offset);
377 ::avro::decode(d, v.
limit);
437 info(std::map<std::string, std::string>())
446 std::map<std::string, std::string>
info;
452 template<>
struct codec_traits<gpudb::RawAggregateUniqueResponse>
461 ::avro::encode(e, v.
info);
466 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
468 const std::vector<size_t> fo = rd->fieldOrder();
470 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
495 ::avro::decode(d, v.
info);
510 ::avro::decode(d, v.
info);
567 info(std::map<std::string, std::string>()),
574 std::vector<gpudb::GenericRecord>
data;
576 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.