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

# checkTable

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="checkTable(com.gpudb.protocol.CheckTableRequest)">
        <h3>checkTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CheckTableResponse" title="class in com.gpudb.protocol">CheckTableResponse</a></span> <span className="element-name">checkTable</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/CheckTableRequest" title="class in com.gpudb.protocol">CheckTableRequest</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">Scans the requested tables as specified in <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest#getTableNames()"><code>tableNames</code></a> for integrity. Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#LOCAL_ONLY"><code>LOCAL\_ONLY</code></a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest" 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/CheckTableResponse" 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="checkTable(java.util.List,java.util.Map)">
        <h3>checkTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CheckTableResponse" title="class in com.gpudb.protocol">CheckTableResponse</a></span> <span className="element-name">checkTable</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>> 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">Scans the requested tables as specified in <code>tableNames</code> for integrity. Any table chunks which fail the check will be marked as corrupt. By default the database will automatically repair corrupt tables (via truncating). Note that since this reads every table column from disk it may be a potentially long-running operation. The option <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#LOCAL_ONLY"><code>LOCAL\_ONLY</code></a> can be used to skip any table files already written to a remote storage. Returns table corruption results.</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>options</code> - Optional parameters.

            <ul>
              <li>
                <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#LOCAL_ONLY"><code>LOCAL\_ONLY</code></a>: If <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#TRUE"><code>TRUE</code></a> only locally persisted files will be checked. Supported values:

                <ul>
                  <li><a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#TRUE"><code>TRUE</code></a> </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#FALSE"><code>FALSE</code></a> </li>
                </ul>

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

              <li>
                <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#SHOW_DETAIL"><code>SHOW\_DETAIL</code></a>: If <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#TRUE"><code>TRUE</code></a> reports individual chunk errors. Supported values:

                <ul>
                  <li><a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#TRUE"><code>TRUE</code></a> </li>
                  <li><a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#FALSE"><code>FALSE</code></a> </li>
                </ul>

                The default value is <a href="/content/api/java/com/gpudb/protocol/CheckTableRequest.Options#TRUE"><code>TRUE</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/CheckTableResponse" 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>
