GPUdb C++ API
Version 7.0.19.0
|
A set of output parameters for const. More...
#include <gpudb/protocol/aggregate_unique.h>
Public Member Functions | |
RawAggregateUniqueResponse () | |
Constructs a RawAggregateUniqueResponse object with default parameter values. More... | |
Public Attributes | |
std::string | tableName |
std::string | responseSchemaStr |
std::vector< uint8_t > | binaryEncodedResponse |
std::string | jsonEncodedResponse |
bool | hasMoreRecords |
std::map< std::string, std::string > | info |
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 424 of file aggregate_unique.h.
|
inline |
Constructs a RawAggregateUniqueResponse object with default parameter values.
Definition at line 431 of file aggregate_unique.h.
std::vector<uint8_t> gpudb::RawAggregateUniqueResponse::binaryEncodedResponse |
Definition at line 443 of file aggregate_unique.h.
bool gpudb::RawAggregateUniqueResponse::hasMoreRecords |
Definition at line 445 of file aggregate_unique.h.
std::map<std::string, std::string> gpudb::RawAggregateUniqueResponse::info |
Definition at line 446 of file aggregate_unique.h.
std::string gpudb::RawAggregateUniqueResponse::jsonEncodedResponse |
Definition at line 444 of file aggregate_unique.h.
std::string gpudb::RawAggregateUniqueResponse::responseSchemaStr |
Definition at line 442 of file aggregate_unique.h.
std::string gpudb::RawAggregateUniqueResponse::tableName |
Definition at line 441 of file aggregate_unique.h.