> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gpudb::CollectStatisticsRequest

> gpudb::CollectStatisticsRequest — Kinetica C++ API

A set of parameters for [GPUdb::collectStatistics](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/collectstatistics.md#a71a881b85611086a22694f352810dc45). [More...](#details)`#include <gpudb/protocol/collect_statistics.h>`

<table>
  <tr>
    <td colSpan="2">
      ## Public Member Functions
    </td>
  </tr>

  <tr id="r_a19572fdc4647aa1dbfe0c53fdded9e70">
    <td align="right" valign="top"> </td>
    <td valign="bottom">[CollectStatisticsRequest](#a19572fdc4647aa1dbfe0c53fdded9e70) ()</td>
  </tr>

  <tr>
    <td> </td>
    <td>Constructs a [CollectStatisticsRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1CollectStatisticsRequest.md) object with default parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>

  <tr id="r_a9d4e3fb62780bb56deed09c463aadf13">
    <td align="right" valign="top"> </td>
    <td valign="bottom">[CollectStatisticsRequest](#a9d4e3fb62780bb56deed09c463aadf13) (const std::string \&tableName\_, const std::vector\< std::string > \&columnNames\_, const std::map\< std::string, std::string > \&options\_)</td>
  </tr>

  <tr>
    <td> </td>
    <td>Constructs a [CollectStatisticsRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1CollectStatisticsRequest.md) object with the specified parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>
</table>

<table>
  <tr>
    <td colSpan="2">
      ## Public Attributes
    </td>
  </tr>

  <tr id="r_a85b887306871ab139f94a49b7eb92daf">
    <td align="right" valign="top">std::string </td>
    <td valign="bottom">[tableName](#a85b887306871ab139f94a49b7eb92daf)</td>
  </tr>

  <tr>
    <td> </td>
    <td>Name of a table, in \[ schema\_name. ]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>

  <tr id="r_a4a59cdf8e2992dce05be1e5e0e0ab04e">
    <td align="right" valign="top">std::vector\< std::string > </td>
    <td valign="bottom">[columnNames](#a4a59cdf8e2992dce05be1e5e0e0ab04e)</td>
  </tr>

  <tr>
    <td> </td>
    <td>List of one or more column names in [tableName](#a85b887306871ab139f94a49b7eb92daf) for which to collect statistics (cardinality, mean value, etc.). \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>

  <tr id="r_aad288b63c5424b999cbaabcf6c61a4de">
    <td align="right" valign="top">std::map\< std::string, std::string > </td>
    <td valign="bottom">[options](#aad288b63c5424b999cbaabcf6c61a4de)</td>
  </tr>

  <tr>
    <td> </td>
    <td>Optional parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>
</table>

## Detailed Description

A set of parameters for [GPUdb::collectStatistics](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/collectstatistics.md#a71a881b85611086a22694f352810dc45). Collect statistics for a column(s) in a specified table. Definition at line [18](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L18) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

## Constructor & Destructor Documentation

## [◆ ](#a19572fdc4647aa1dbfe0c53fdded9e70)CollectStatisticsRequest() \[1/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>gpudb::CollectStatisticsRequest::CollectStatisticsRequest </td>
          <td>(</td>

          <td />

          <td>)</td>

          <td />
        </tr>
      </table>
    </td>

    <td> inline </td>
  </tr>
</table>

Constructs a [CollectStatisticsRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1CollectStatisticsRequest.md) object with default parameters. Definition at line [24](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L24) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

## [◆ ](#a9d4e3fb62780bb56deed09c463aadf13)CollectStatisticsRequest() \[2/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>gpudb::CollectStatisticsRequest::CollectStatisticsRequest </td>
          <td>(</td>
          <td>const std::string &</td>
          <td>tableName\_, </td>
        </tr>

        <tr>
          <td />

          <td />

          <td>const std::vector\< std::string > &</td>
          <td>columnNames\_, </td>
        </tr>

        <tr>
          <td />

          <td />

          <td>const std::map\< std::string, std::string > &</td>
          <td>options\_ )</td>
        </tr>
      </table>
    </td>

    <td> inline </td>
  </tr>
</table>

Constructs a [CollectStatisticsRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1CollectStatisticsRequest.md) object with the specified parameters.&#x20;

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>tableName\_</td>
    <td>Name of a table, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). 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 '\*'. </td>
  </tr>

  <tr>
    <td>\[in]</td>
    <td>columnNames\_</td>
    <td>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). </td>
  </tr>

  <tr>
    <td>\[in]</td>
    <td>options\_</td>
    <td>Optional parameters. The default value is an empty map. </td>
  </tr>
</table>

Definition at line [53](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L53) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

## Member Data Documentation

## [◆ ](#a4a59cdf8e2992dce05be1e5e0e0ab04e)columnNames

<table>
  <tr>
    <td>std::vector\<std::string> gpudb::CollectStatisticsRequest::columnNames</td>
  </tr>
</table>

List of one or more column names in [tableName](#a85b887306871ab139f94a49b7eb92daf) 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). Definition at line [76](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L76) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

## [◆ ](#aad288b63c5424b999cbaabcf6c61a4de)options

<table>
  <tr>
    <td>std::map\<std::string, std::string> gpudb::CollectStatisticsRequest::options</td>
  </tr>
</table>

Optional parameters. The default value is an empty map. Definition at line [81](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L81) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

## [◆ ](#a85b887306871ab139f94a49b7eb92daf)tableName

<table>
  <tr>
    <td>std::string gpudb::CollectStatisticsRequest::tableName</td>
  </tr>
</table>

Name of a table, in \[ schema\_name. ]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution). 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](#a4a59cdf8e2992dce05be1e5e0e0ab04e) must be '\*'. Definition at line [68](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h#L68) of file [collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h).

***

The documentation for this struct was generated from the following file:

<ul>
  <li>gpudb/protocol/[collect\_statistics.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/collect_statistics.h)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.