Skip to main content
  • collectStatistics

    public CollectStatisticsResponse collectStatistics(CollectStatisticsRequest request) throws GPUdbException
    Collect statistics for a column(s) in a specified table.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • collectStatistics

    public CollectStatisticsResponse collectStatistics(String tableName, List<String> columnNames, Map<String,String> options) throws GPUdbException
    Collect statistics for a column(s) in a specified table.
    Parameters:
    tableName - Name of a table, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table. A value of ’*’ collects statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used, columnNames must be ’*‘.
    columnNames - List of one or more column names in tableName for which to collect statistics (cardinality, mean value, etc.). A single entry of ’*’ expands to every collectable column on the table (geometry, vector, JSON, and array columns are skipped).
    options - Optional parameters. The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.