aggregateHistogram
public AggregateHistogramResponse aggregateHistogram(AggregateHistogramRequest request) throws GPUdbException Performs a histogram calculation given a table, a column, and an interval function. Theintervalis 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 aVALUE_COLUMN. In this latter case the sum of the values corresponding to theVALUE_COLUMNis 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:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.aggregateHistogram
public AggregateHistogramResponse aggregateHistogram(String tableName, String columnName, double start, double end, double interval, Map<String, String> options) throws GPUdbException Performs a histogram calculation given a table, a column, and an interval function. Theintervalis 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 aVALUE_COLUMN. In this latter case the sum of the values corresponding to theVALUE_COLUMNis 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:tableName- Name 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.columnName- Name of a column or an expression of one or more column names over which the histogram will be calculated.start- Lower end value of the histogram interval, inclusive.end- Upper end value of the histogram interval, inclusive.interval- The size of each bin within the start and end parameters.options- Optional parameters.VALUE_COLUMN: The name of the column to use when calculating the bin values (values are summed). The column must be a numerical type (int, double, long, float).START: The start parameter for char types.END: The end parameter for char types.INTERVAL: The interval parameter for char types.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.