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

# HasTableRequest

> HasTableRequest — Kinetica Java API

Package [com.gpudb.protocol](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/package-summary.md)

# Class HasTableRequest

[java.lang.Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
com.gpudb.protocol.HasTableRequest

All Implemented Interfaces:`org.apache.avro.generic.GenericContainer`, `org.apache.avro.generic.IndexedRecord`

***

public class HasTableRequest extends [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) implements org.apache.avro.generic.IndexedRecord

A set of parameters for [`GPUdb.hasTable`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/hastable#hasTable\(com.gpudb.protocol.HasTableRequest\)).
&#x20;Checks for the existence of a table with the given name.

<ul>
  <li>
    ## Constructor Summary

    Constructors

    ConstructorDescription`HasTableRequest()`

    Constructs a HasTableRequest object with default parameters.

    `HasTableRequest(String tableName, Map<String,String> options)`

    Constructs a HasTableRequest object with the specified parameters.
  </li>

  <li>
    ## Method Summary

    All MethodsStatic MethodsInstance MethodsConcrete Methods

    Modifier and TypeMethodDescription`boolean``equals(Object obj)` `Object``get(int index)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `static org.apache.avro.Schema``getClassSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `Map<String,String>``getOptions()`

    Optional parameters.

    `org.apache.avro.Schema``getSchema()`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `String``getTableName()`

    Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

    `int``hashCode()` `void``put(int index, Object value)`

    This method supports the Avro framework and is not intended to be called directly by the user.

    `HasTableRequest``setOptions(Map<String,String> options)`

    Optional parameters.

    `HasTableRequest``setTableName(String tableName)`

    Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

    `String``toString()` 

    Methods inherited from class java.lang.[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
    `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`
  </li>
</ul>

<ul>
  <li>
    ## Constructor Details

    <ul>
      <li>
        ### HasTableRequest

        public HasTableRequest()Constructs a HasTableRequest object with default parameters.
      </li>

      <li>
        ### HasTableRequest

        public HasTableRequest<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) tableName, [Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)Constructs a HasTableRequest object with the specified parameters.

        Parameters:`tableName` - Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).`options` - Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).
      </li>
    </ul>
  </li>

  <li>
    ## Method Details

    <ul>
      <li>
        ### getClassSchema

        public static org.apache.avro.Schema getClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Returns:The schema for the class.
      </li>

      <li>
        ### getTableName

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) getTableName()Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

        Returns:The current value of `tableName`.
      </li>

      <li>
        ### setTableName

        public [HasTableRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/HasTableRequest.md) setTableName<wbr />([String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) tableName)Name of the table to check for existence, in \[schema\_name.]table\_name format, using standard [name resolution rules](https://docs.kinetica.com/content/concepts/tables.md#table-name-resolution).

        Parameters:`tableName` - The new value for `tableName`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getOptions

        public [Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> getOptions()Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Returns:The current value of `options`.
      </li>

      <li>
        ### setOptions

        public [HasTableRequest](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/HasTableRequest.md) setOptions<wbr />([Map](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html)\<[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html),<wbr />[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)> options)Optional parameters. The default value is an empty [`Map`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html).

        Parameters:`options` - The new value for `options`.Returns:`this` to mimic the builder pattern.
      </li>

      <li>
        ### getSchema

        public org.apache.avro.Schema getSchema()This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`getSchema` in interface `org.apache.avro.generic.GenericContainer`Returns:The schema object describing this class.
      </li>

      <li>
        ### get

        public [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) get<wbr />(int index)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`get` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to getReturns:value of the field with the given index.Throws:`IndexOutOfBoundsException`
      </li>

      <li>
        ### put

        public void put<wbr />(int index, [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) value)This method supports the Avro framework and is not intended to be called directly by the user.

        Specified by:`put` in interface `org.apache.avro.generic.IndexedRecord`Parameters:`index` - the position of the field to set`value` - the value to setThrows:`IndexOutOfBoundsException`
      </li>

      <li>
        ### equals

        public boolean equals<wbr />([Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html) obj)

        Overrides:`equals` in class `Object`
      </li>

      <li>
        ### toString

        public [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) toString()

        Overrides:`toString` in class `Object`
      </li>

      <li>
        ### hashCode

        public int hashCode()

        Overrides:`hashCode` in class `Object`
      </li>
    </ul>
  </li>
</ul>


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