GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::AggregateUniqueResponse Struct Reference

A set of output parameters for 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
 
std::map< std::string,
std::string > 
info
 
gpudb_type_ptr_t dataTypePtr
 

Detailed Description

A set of output parameters for const.

Returns all the unique values from a particular column (specified by columnName) of a particular table or view (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. The results can be paged via the offset and limit parameters.

Columns marked as store-only are unable to be used with this function.

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 a result_table name is specified in the options, the results are stored in a new table with that name–no results are returned in the response. Both the table name and resulting column name must adhere to standard naming conventions; any column expression will need to be aliased. If the source table's shard key is used as the columnName, the result table will be sharded, in all other cases it will be replicated. Sorting will properly function only if the result table is replicated or if there is only one processing node and should not be relied upon in other cases. Not available if the value of columnName is an unrestricted-length string.

Definition at line 555 of file aggregate_unique.h.

Constructor & Destructor Documentation

gpudb::AggregateUniqueResponse::AggregateUniqueResponse ( )
inline

Constructs an AggregateUniqueResponse object with default parameter values.

Definition at line 562 of file aggregate_unique.h.

Member Data Documentation

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

Definition at line 574 of file aggregate_unique.h.

gpudb_type_ptr_t gpudb::AggregateUniqueResponse::dataTypePtr

Definition at line 577 of file aggregate_unique.h.

bool gpudb::AggregateUniqueResponse::hasMoreRecords

Definition at line 575 of file aggregate_unique.h.

std::map<std::string, std::string> gpudb::AggregateUniqueResponse::info

Definition at line 576 of file aggregate_unique.h.

std::string gpudb::AggregateUniqueResponse::responseSchemaStr

Definition at line 573 of file aggregate_unique.h.

std::string gpudb::AggregateUniqueResponse::tableName

Definition at line 572 of file aggregate_unique.h.


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