> ## 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::AdminRepairTableRequest

> gpudb::AdminRepairTableRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#adedd21391e4301a79aca49f95e18a3c9">GPUdb::adminRepairTable</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/admin__repair__table_8h_source">gpudb/protocol/admin\_repair\_table.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:afbeb54665dd2e2f0db26fc94e03ff11d" id="r_afbeb54665dd2e2f0db26fc94e03ff11d">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#afbeb54665dd2e2f0db26fc94e03ff11d">AdminRepairTableRequest</a> ()</td>
      </tr>

      <tr className="memdesc:afbeb54665dd2e2f0db26fc94e03ff11d">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest" title="A set of parameters for GPUdb::adminRepairTable.">AdminRepairTableRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:afbeb54665dd2e2f0db26fc94e03ff11d">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:ab03a17a7e3ad2fa74e6678de7abdf734" id="r_ab03a17a7e3ad2fa74e6678de7abdf734">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#ab03a17a7e3ad2fa74e6678de7abdf734">AdminRepairTableRequest</a> (const std::vector\< std::string > \&tableNames\_, const std::map\< std::string, std::string > \&tableTypes\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:ab03a17a7e3ad2fa74e6678de7abdf734">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest" title="A set of parameters for GPUdb::adminRepairTable.">AdminRepairTableRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:ab03a17a7e3ad2fa74e6678de7abdf734">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:afae12bcaa6dbf860cb6fa547fe051a86" id="r_afae12bcaa6dbf860cb6fa547fe051a86">
        <td className="memItemLeft" align="right" valign="top">std::vector\< std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#afae12bcaa6dbf860cb6fa547fe051a86">tableNames</a></td>
      </tr>

      <tr className="memdesc:afae12bcaa6dbf860cb6fa547fe051a86">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">List of tables to query. <br /></td>
      </tr>

      <tr className="separator:afae12bcaa6dbf860cb6fa547fe051a86">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:af99176351c52b32fb2f8dbe3b50022fd" id="r_af99176351c52b32fb2f8dbe3b50022fd">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#af99176351c52b32fb2f8dbe3b50022fd">tableTypes</a></td>
      </tr>

      <tr className="memdesc:af99176351c52b32fb2f8dbe3b50022fd">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">ID of the type per table. <br /></td>
      </tr>

      <tr className="separator:af99176351c52b32fb2f8dbe3b50022fd">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aa34c068cc49a0c9c834549368596f1a1" id="r_aa34c068cc49a0c9c834549368596f1a1">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aa34c068cc49a0c9c834549368596f1a1">options</a></td>
      </tr>

      <tr className="memdesc:aa34c068cc49a0c9c834549368596f1a1">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:aa34c068cc49a0c9c834549368596f1a1">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#adedd21391e4301a79aca49f95e18a3c9">GPUdb::adminRepairTable</a>. </p>
      <p>Manually repair a corrupted table. Returns information about affected tables. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00019">19</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#afbeb54665dd2e2f0db26fc94e03ff11d">◆ </a></span>AdminRepairTableRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AdminRepairTableRequest::AdminRepairTableRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

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

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest" title="A set of parameters for GPUdb::adminRepairTable.">AdminRepairTableRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00025">25</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#ab03a17a7e3ad2fa74e6678de7abdf734">◆ </a></span>AdminRepairTableRequest() <span className="overload">\[2/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::AdminRepairTableRequest::AdminRepairTableRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::vector\< std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">tableNames\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">tableTypes\_</span></span>, </td>
                </tr>

                <tr>
                  <td className="paramkey" />

                  <td />

                  <td className="paramtype">const std::map\< std::string, std::string > &</td>
                  <td className="paramname"><span className="paramname"><span className="em">options\_</span></span> )</td>
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs an <a className="el" href="/content/api/cpp/structgpudb_1_1AdminRepairTableRequest" title="A set of parameters for GPUdb::adminRepairTable.">AdminRepairTableRequest</a> object with the specified parameters. </p>

        <div className="dl params">
          <div className="dt">Parameters</div>

          <div className="dd">
            <table className="params">
              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">tableNames\_</td>
                <td>List of tables to query. An asterisk returns all tables. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">tableTypes\_</td>
                <td>ID of the type per table. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>

                <td>
                  Optional parameters.

                  <ul>
                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#a4bada1b9469a0cd397de7fe5e555d585">admin\_repair\_table\_repair\_policy</a>: Corrective action to take. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4fe6545f048aa4870400a0c09c00fb7f">admin\_repair\_table\_delete\_chunks</a>: Deletes any corrupted chunks. </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#a62e3c8da051c7ade51a6d8d2843836cd">admin\_repair\_table\_shrink\_columns</a>: Shrinks corrupted chunks to the shortest column. </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#af345373cc94482fba61976ee8b11f41a">admin\_repair\_table\_replay\_wal</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab89a7837f586b9b6a7cfea294f36e284">admin\_repair\_table\_alter\_table</a>: Reset columns modification after incomplete alter column. </li>
                      </ul>
                    </li>

                    <li>
                      <a className="el" href="/content/api/cpp/namespacegpudb#ad9086c3e62d17a48fef4d21172b9b642">admin\_repair\_table\_verify\_all</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">false</a> only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:

                      <ul>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab4fc473dc98a532e863323eed0eca559">admin\_repair\_table\_true</a> </li>
                        <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a> </li>
                      </ul>

                      The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a>.
                    </li>
                  </ul>

                  The default value is an empty map.
                </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00091">91</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#aa34c068cc49a0c9c834549368596f1a1">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::AdminRepairTableRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>

        <ul>
          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a4bada1b9469a0cd397de7fe5e555d585">admin\_repair\_table\_repair\_policy</a>: Corrective action to take. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a4fe6545f048aa4870400a0c09c00fb7f">admin\_repair\_table\_delete\_chunks</a>: Deletes any corrupted chunks. </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a62e3c8da051c7ade51a6d8d2843836cd">admin\_repair\_table\_shrink\_columns</a>: Shrinks corrupted chunks to the shortest column. </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#af345373cc94482fba61976ee8b11f41a">admin\_repair\_table\_replay\_wal</a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab89a7837f586b9b6a7cfea294f36e284">admin\_repair\_table\_alter\_table</a>: Reset columns modification after incomplete alter column. </li>
            </ul>
          </li>

          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#ad9086c3e62d17a48fef4d21172b9b642">admin\_repair\_table\_verify\_all</a>: If <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">false</a> only table chunk data already known to be corrupted will be repaired. Otherwise the database will perform a full table scan to check for correctness. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab4fc473dc98a532e863323eed0eca559">admin\_repair\_table\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#ab920a046b0fcb2c47b02262a0fd3c4a4">admin\_repair\_table\_false</a>.
          </li>
        </ul>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00147">147</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#afae12bcaa6dbf860cb6fa547fe051a86">◆ </a></span>tableNames</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::vector\<std::string> gpudb::AdminRepairTableRequest::tableNames</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>List of tables to query. </p>
        <p>An asterisk returns all tables. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00101">101</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#af99176351c52b32fb2f8dbe3b50022fd">◆ </a></span>tableTypes</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::AdminRepairTableRequest::tableTypes</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>ID of the type per table. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/admin__repair__table_8h_source#l00106">106</a> of file <a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a>.</p>
      </div>
    </div>

    <hr />

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

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/admin__repair__table_8h_source">admin\_repair\_table.h</a></li>
    </ul>
  </div>
</div>
