6 #ifndef __AGGREGATE_UNIQUE_H__ 7 #define __AGGREGATE_UNIQUE_H__ 9 #include "../GenericRecord.hpp" 63 options(std::map<std::string, std::string>())
169 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_):
292 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_):
319 ::avro::encode(e, v.
offset);
320 ::avro::encode(e, v.
limit);
327 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
329 const std::vector<size_t> fo = rd->fieldOrder();
331 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
344 ::avro::decode(d, v.
offset);
348 ::avro::decode(d, v.
limit);
368 ::avro::decode(d, v.
offset);
369 ::avro::decode(d, v.
limit);
425 responseSchemaStr(std::string()),
426 binaryEncodedResponse(std::vector<uint8_t>()),
427 jsonEncodedResponse(std::string()),
428 hasMoreRecords(bool())
455 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
457 const std::vector<size_t> fo = rd->fieldOrder();
459 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
548 responseSchemaStr(std::string()),
550 hasMoreRecords(bool()),
557 std::vector<gpudb::GenericRecord>
data;
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
A set of input parameters for aggregateUniqueRaw(const AggregateUniqueRequest&) const.
A set of output parameters for aggregateUnique(const AggregateUniqueRequest&) 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
A set of output parameters for aggregateUniqueRaw(const AggregateUniqueRequest&) 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.