GPUdb C++ API  Version 5.2.0.0
gpudb::AggregateUniqueResponse Struct Reference

A set of output parameters for aggregateUnique(const AggregateUniqueRequest&) const. More...

#include <gpudb/protocol/aggregate_unique.h>

Public Member Functions

 AggregateUniqueResponse ()
 Constructs an AggregateUniqueResponse object with default parameter values. More...
 

Public Attributes

std::string tableName
 
std::string responseSchemaStr
 
std::vector< gpudb::GenericRecorddata
 
bool hasMoreRecords
 

Detailed Description

A set of output parameters for aggregateUnique(const AggregateUniqueRequest&) const.

Returns all the unique values from a particular column (specified by columnName) of a particular table (specified by tableName). If columnName is a numeric column the values will be in binaryEncodedResponse. Otherwise if columnName is a string column the values will be in jsonEncodedResponse. offset and limit are used to page through the results if there are large numbers of unique values. To get the first 10 unique values sorted in descending order options would be::

{"limit":"10","sort_order":"descending"}.

The response is returned as a dynamic schema. For details see: dynamic schemas documentation. If the 'result_table' option is provided then the results are stored in a table with the name given in the option and the results are not returned in the response.

Definition at line 344 of file aggregate_unique.h.

Constructor & Destructor Documentation

gpudb::AggregateUniqueResponse::AggregateUniqueResponse ( )
inline

Constructs an AggregateUniqueResponse object with default parameter values.

Definition at line 351 of file aggregate_unique.h.

Member Data Documentation

std::vector<gpudb::GenericRecord> gpudb::AggregateUniqueResponse::data

Definition at line 361 of file aggregate_unique.h.

bool gpudb::AggregateUniqueResponse::hasMoreRecords

Definition at line 362 of file aggregate_unique.h.

std::string gpudb::AggregateUniqueResponse::responseSchemaStr

Definition at line 360 of file aggregate_unique.h.

std::string gpudb::AggregateUniqueResponse::tableName

Definition at line 359 of file aggregate_unique.h.


The documentation for this struct was generated from the following file: