Skip to main content

◆ aggregateHistogram() [1/4]

AggregateHistogramResponse gpudb::GPUdb::aggregateHistogram (const AggregateHistogramRequest &request_) const

Performs a histogram calculation given a table, a column, and an interval function.

The interval is used to produce bins of that size and the result, computed over the records falling within each bin, is returned. For each bin, the start value is inclusive, but the end value is exclusive–except for the very last bin for which the end value is also inclusive. The value returned for each bin is the number of records in it, except when a column name is provided as a value_column. In this latter case the sum of the values corresponding to the value_column is used as the result instead. The total number of bins requested cannot exceed 10,000.

NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service a request that specifies a value_column.

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

◆ aggregateHistogram() [2/4]

AggregateHistogramResponse & gpudb::GPUdb::aggregateHistogram (const AggregateHistogramRequest &request_,
AggregateHistogramResponse &response_ ) const

Performs a histogram calculation given a table, a column, and an interval function.

The interval is used to produce bins of that size and the result, computed over the records falling within each bin, is returned. For each bin, the start value is inclusive, but the end value is exclusive–except for the very last bin for which the end value is also inclusive. The value returned for each bin is the number of records in it, except when a column name is provided as a value_column. In this latter case the sum of the values corresponding to the value_column is used as the result instead. The total number of bins requested cannot exceed 10,000.

NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service a request that specifies a value_column.

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

◆ aggregateHistogram() [3/4]

AggregateHistogramResponse gpudb::GPUdb::aggregateHistogram (const std::string &tableName,
const std::string &columnName,
const doublestart,
const doubleend,
const doubleinterval,
const std::map< std::string, std::string > &options ) const

Performs a histogram calculation given a table, a column, and an interval function.

The interval is used to produce bins of that size and the result, computed over the records falling within each bin, is returned. For each bin, the start value is inclusive, but the end value is exclusive–except for the very last bin for which the end value is also inclusive. The value returned for each bin is the number of records in it, except when a column name is provided as a value_column. In this latter case the sum of the values corresponding to the value_column is used as the result instead. The total number of bins requested cannot exceed 10,000.

NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service a request that specifies a value_column.

Parameters
[in]tableNameName of the table on which the operation will be performed. Must be an existing table, in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of a column or an expression of one or more column names over which the histogram will be calculated.
[in]startLower end value of the histogram interval, inclusive.
[in]endUpper end value of the histogram interval, inclusive.
[in]intervalThe size of each bin within the start and end parameters.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ aggregateHistogram() [4/4]

AggregateHistogramResponse & gpudb::GPUdb::aggregateHistogram (const std::string &tableName,
const std::string &columnName,
const doublestart,
const doubleend,
const doubleinterval,
const std::map< std::string, std::string > &options,
AggregateHistogramResponse &response_ ) const

Performs a histogram calculation given a table, a column, and an interval function.

The interval is used to produce bins of that size and the result, computed over the records falling within each bin, is returned. For each bin, the start value is inclusive, but the end value is exclusive–except for the very last bin for which the end value is also inclusive. The value returned for each bin is the number of records in it, except when a column name is provided as a value_column. In this latter case the sum of the values corresponding to the value_column is used as the result instead. The total number of bins requested cannot exceed 10,000.

NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service a request that specifies a value_column.

Parameters
[in]tableNameName of the table on which the operation will be performed. Must be an existing table, in [schema_name.]table_name format, using standard name resolution rules.
[in]columnNameName of a column or an expression of one or more column names over which the histogram will be calculated.
[in]startLower end value of the histogram interval, inclusive.
[in]endUpper end value of the histogram interval, inclusive.
[in]intervalThe size of each bin within the start and end parameters.
[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).