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

# adminRepairTable

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="adminRepairTable(com.gpudb.protocol.AdminRepairTableRequest)">
        <h3>adminRepairTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableResponse" title="class in com.gpudb.protocol">AdminRepairTableResponse</a></span> <span className="element-name">adminRepairTable</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest" title="class in com.gpudb.protocol">AdminRepairTableRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Manually repair a corrupted table. Returns information about affected tables.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="adminRepairTable(java.util.List,java.util.Map,java.util.Map)">
        <h3>adminRepairTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableResponse" title="class in com.gpudb.protocol">AdminRepairTableResponse</a></span> <span className="element-name">adminRepairTable</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html" title="class or interface in java.util" className="external-link">List</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> tableNames, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> tableTypes, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Manually repair a corrupted table. Returns information about affected tables.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>tableNames</code> - List of tables to query. An asterisk returns all tables.</div>
          <div className="dd"><code>tableTypes</code> - ID of the type per table.</div>

          <div className="dd">
            <code>options</code> - Optional parameters.

            <ul>
              <li>
                <a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#REPAIR_POLICY"><code>REPAIR\_POLICY</code></a>: Corrective action to take. Supported values:

                <ul>
                  <li><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#DELETE_CHUNKS"><code>DELETE\_CHUNKS</code></a>: Deletes any corrupted chunks. </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#SHRINK_COLUMNS"><code>SHRINK\_COLUMNS</code></a>: Shrinks corrupted chunks to the shortest column. </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#REPLAY_WAL"><code>REPLAY\_WAL</code></a>: Manually invokes write-ahead log (WAL) replay on the table. </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#ALTER_TABLE"><code>ALTER\_TABLE</code></a>: Reset columns modification after incomplete alter column. </li>
                </ul>
              </li>

              <li>
                <a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#VERIFY_ALL"><code>VERIFY\_ALL</code></a>: If <a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#FALSE"><code>FALSE</code></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 href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#TRUE"><code>TRUE</code></a> </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#FALSE"><code>FALSE</code></a> </li>
                </ul>

                The default value is <a href="/content/api/java/com/gpudb/protocol/AdminRepairTableRequest.Options#FALSE"><code>FALSE</code></a>.
              </li>
            </ul>

            The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.
          </div>

          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/AdminRepairTableResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
