Skip to main content

◆ aggregateUnique() [1/4]

AggregateUniqueResponse gpudb::GPUdb::aggregateUnique (const AggregateUniqueRequest &request_) 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 offset and limit parameters.

”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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ aggregateUnique() [2/4]

AggregateUniqueResponse & gpudb::GPUdb::aggregateUnique (const AggregateUniqueRequest &request_,
AggregateUniqueResponse &response_ ) 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 offset and limit parameters.

”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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ aggregateUnique() [3/4]

AggregateUniqueResponse gpudb::GPUdb::aggregateUnique (const std::string &tableName,
const std::string &columnName,
const int64_toffset,
const int64_tlimit,
const std::map< std::string, std::string > &options ) 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 offset and limit parameters.

”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.

Parameters
[in]tableNameName of an existing table or view on which the operation will be performed, in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of the column or an expression containing one or more column names on which the unique function would be applied.
[in]offsetA positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX_INT.
[in]limitA positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the max_get_records_size parameter in the server configuration. Use hasMoreRecords to see if more records exist in the result to be fetched, and offset and limit to request subsequent pages of results. The default value is -9999.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ aggregateUnique() [4/4]

AggregateUniqueResponse & gpudb::GPUdb::aggregateUnique (const std::string &tableName,
const std::string &columnName,
const int64_toffset,
const int64_tlimit,
const std::map< std::string, std::string > &options,
AggregateUniqueResponse &response_ ) 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 offset and limit parameters.

”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.

Parameters
[in]tableNameName of an existing table or view on which the operation will be performed, in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of the column or an expression containing one or more column names on which the unique function would be applied.
[in]offsetA positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The default value is 0. The minimum allowed value is 0. The maximum allowed value is MAX_INT.
[in]limitA positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server’s own limit, defined by the max_get_records_size parameter in the server configuration. Use hasMoreRecords to see if more records exist in the result to be fetched, and offset and limit to request subsequent pages of results. The default value is -9999.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).