6 #ifndef __AGGREGATE_UNIQUE_H__ 7 #define __AGGREGATE_UNIQUE_H__ 9 #include "../GenericRecord.hpp" 48 options(std::map<std::string, std::string>())
85 columnName(columnName),
128 tableName(tableName),
129 columnName(columnName),
154 ::avro::encode(e, v.
offset);
155 ::avro::encode(e, v.
limit);
162 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
164 const std::vector<size_t> fo = rd->fieldOrder();
166 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
179 ::avro::decode(d, v.
offset);
183 ::avro::decode(d, v.
limit);
203 ::avro::decode(d, v.
offset);
204 ::avro::decode(d, v.
limit);
245 responseSchemaStr(std::string()),
246 binaryEncodedResponse(std::vector<uint8_t>()),
247 jsonEncodedResponse(std::string()),
248 hasMoreRecords(bool())
275 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
277 const std::vector<size_t> fo = rd->fieldOrder();
279 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
353 responseSchemaStr(std::string()),
355 hasMoreRecords(bool())
361 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 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
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.
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::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.