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

# InsertRecordsRequest

> InsertRecordsRequest — Kinetica Java API

<div className="kinetica-javadoc">
  <div className="header">
    <div className="sub-title"><span className="package-label-in-type">Package</span> <a href="/content/api/java/com/gpudb/protocol/package-summary">com.gpudb.protocol</a></div>
    <h1 title="Class InsertRecordsRequest" className="title">Class InsertRecordsRequest\<T></h1>
  </div>

  <div className="inheritance" title="Inheritance Tree">
    <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">java.lang.Object</a>
    <div className="inheritance">com.gpudb.protocol.InsertRecordsRequest\<T></div>
  </div>

  <div className="section class-description" id="class-description">
    <div className="dl notes">
      <div className="dt">Type Parameters:</div>
      <div className="dd"><code>T</code> - The type of object being processed.</div>
    </div>

    <hr />

    <div className="type-signature"><span className="modifiers">public class </span><span className="element-name type-name-label">InsertRecordsRequest\<T></span> <span className="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></span></div>

    <div className="block">
      A set of parameters for <a href="/content/api/java/com/gpudb/GPUdb#insertRecords(com.gpudb.protocol.InsertRecordsRequest)"><code>GPUdb.insertRecords</code></a>.
      <p> Adds multiple records to the specified table. The operation is synchronous, meaning that a response will not be returned until all the records are fully inserted and available. The response payload provides the counts of the number of records actually inserted and/or updated, and can provide the unique identifier of each added record. </p>
      <p> The <a href="#getOptions()"><code>options</code></a> parameter can be used to customize this function's behavior. </p>
      <p> The <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> option specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, but is ignored if no primary key exists. </p>
      <p> The <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_RECORD_IDS"><code>RETURN\_RECORD\_IDS</code></a> option indicates that the database should return the unique identifiers of inserted records.</p>
    </div>
  </div>

  <div className="section summary">
    <ul className="summary-list">
      <li>
        <div className="section nested-class-summary" id="nested-class-summary">
          <h2>Nested Class Summary</h2>
          <div className="caption"><span>Nested Classes</span></div>

          <div className="summary-table three-column-summary">
            <div className="table-header col-first">Modifier and Type</div>
            <div className="table-header col-second">Class</div>
            <div className="table-header col-last">Description</div>
            <div className="col-first even-row-color"><code>static final class </code></div>
            <div className="col-second even-row-color"><code><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options" className="type-name-link" title="class in com.gpudb.protocol">InsertRecordsRequest.Options</a></code></div>

            <div className="col-last even-row-color">
              <div className="block">A set of string constants for the <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol"><code>InsertRecordsRequest</code></a> parameter <a href="#getOptions()"><code>options</code></a>.</div>
            </div>
          </div>
        </div>
      </li>

      <li>
        <div className="section constructor-summary" id="constructor-summary">
          <h2>Constructor Summary</h2>
          <div className="caption"><span>Constructors</span></div>

          <div className="summary-table two-column-summary">
            <div className="table-header col-first">Constructor</div>
            <div className="table-header col-last">Description</div>
            <div className="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" className="member-name-link">InsertRecordsRequest</a>()</code></div>

            <div className="col-last even-row-color">
              <div className="block">Constructs an InsertRecordsRequest object with default parameters.</div>
            </div>

            <div className="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,java.util.List,java.util.Map)" className="member-name-link">InsertRecordsRequest</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> tableName, <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="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>> data, <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)</code></div>

            <div className="col-last odd-row-color">
              <div className="block">Constructs an InsertRecordsRequest object with the specified parameters.</div>
            </div>
          </div>
        </div>
      </li>

      <li>
        <div className="section method-summary" id="method-summary">
          <h2>Method Summary</h2>

          <div id="method-summary-table">
            <div className="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabIndex="0" className="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabIndex="-1" className="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabIndex="-1" className="table-tab">Concrete Methods</button></div>

            <div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
              <div className="summary-table three-column-summary">
                <div className="table-header col-first">Modifier and Type</div>
                <div className="table-header col-second">Method</div>
                <div className="table-header col-last">Description</div>
                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#equals(java.lang.Object)" className="member-name-link">equals</a><wbr />(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> obj)</code></div>
                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
                <div className="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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><wbr />\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></code></div>
                <div className="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getData()" className="member-name-link">getData</a>()</code></div>

                <div className="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">An array of binary-encoded data for the records to be added.</div>
                </div>

                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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><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>,<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>></code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getOptions()" className="member-name-link">getOptions</a>()</code></div>

                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Optional parameters.</div>
                </div>

                <div className="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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></code></div>
                <div className="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getTableName()" className="member-name-link">getTableName</a>()</code></div>

                <div className="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>.</div>
                </div>

                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#hashCode()" className="member-name-link">hashCode</a>()</code></div>
                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
                <div className="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a><wbr />\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></code></div>
                <div className="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setData(java.util.List)" className="member-name-link">setData</a><wbr />(<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="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>> data)</code></div>

                <div className="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">An array of binary-encoded data for the records to be added.</div>
                </div>

                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a><wbr />\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setOptions(java.util.Map)" className="member-name-link">setOptions</a><wbr />(<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)</code></div>

                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Optional parameters.</div>
                </div>

                <div className="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a><wbr />\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></code></div>
                <div className="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setTableName(java.lang.String)" className="member-name-link">setTableName</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> tableName)</code></div>

                <div className="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
                  <div className="block">Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>.</div>
                </div>

                <div className="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><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></code></div>
                <div className="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toString()" className="member-name-link">toString</a>()</code></div>
                <div className="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
              </div>
            </div>
          </div>

          <div className="inherited-list">
            <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></h3>
            <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" className="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" className="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" className="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" className="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" className="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" className="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" className="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" className="external-link">wait</a></code>
          </div>
        </div>
      </li>
    </ul>
  </div>

  <div className="section details">
    <ul className="details-list">
      <li>
        <div className="section constructor-details" id="constructor-detail">
          <h2>Constructor Details</h2>

          <ul className="member-list">
            <li>
              <div className="section detail" id="<init>()">
                <h3>InsertRecordsRequest</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="element-name">InsertRecordsRequest</span>()</div>
                <div className="block">Constructs an InsertRecordsRequest object with default parameters.</div>
              </div>
            </li>

            <li>
              <div className="section detail" id="<init>(java.lang.String,java.util.List,java.util.Map)">
                <h3>InsertRecordsRequest</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="element-name">InsertRecordsRequest</span><wbr /><span className="parameters">(<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> tableName, <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="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>> data, <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></div>
                <div className="block">Constructs an InsertRecordsRequest object with the specified parameters.</div>

                <div className="dl notes">
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>tableName</code> - Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table.</div>
                  <div className="dd"><code>data</code> - An array of binary-encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if <code>listEncoding</code> is <code>JSON</code>.</div>

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

                    <ul>
                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a>: Specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be "upserted"). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>, <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>, and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key, then this option has no effect. Supported values:

                        <ul>
                          <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Upsert new records when primary keys match existing records. </li>
                          <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Reject new records when primary keys match existing records. </li>
                        </ul>

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ENABLE_INPLACE_UPDATES"><code>ENABLE\_INPLACE\_UPDATES</code></a>: Applies only when upserting (when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, an existing record matched by primary key is modified in place. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Supported values:

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

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>: Specifies the record collision error-suppression policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a> and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key or if upsert mode is in effect (<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>), then this option has no effect. Supported values:

                        <ul>
                          <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Ignore new records whose primary key values collide with those of existing records. </li>
                          <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Treat as errors any new records whose primary key values collide with those of existing records. </li>
                        </ul>

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

                      <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_HIGHER"><code>PK\_CONFLICT\_PREDICATE\_HIGHER</code></a>: The record with higher value for the column resolves the primary-key insert conflict. The default value is ''. </li>
                      <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_LOWER"><code>PK\_CONFLICT\_PREDICATE\_LOWER</code></a>: The record with lower value for the column resolves the primary-key insert conflict. The default value is ''. </li>

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_RECORD_IDS"><code>RETURN\_RECORD\_IDS</code></a>: If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a> then return the internal record id along for each inserted record. Supported values:

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

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUNCATE_STRINGS"><code>TRUNCATE\_STRINGS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any strings which are too long for their target charN string columns will be truncated to fit. Supported values:

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

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, success will always be returned, and any errors found will be included in the info map. The "bad\_record\_indices" entry is a comma-separated list of bad records (0-based). If so, there will also be an "error\_N" entry for each record with an error, where N is the index (0-based). Supported values:

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

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, all correct records will be inserted and incorrect records will be rejected and reported. Otherwise, the entire batch will be rejected if any records are incorrect. Supported values:

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

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

                      <li>
                        <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#DRY_RUN"><code>DRY\_RUN</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, no data will be saved and any errors will be returned. Supported values:

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

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

                      <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#REQUEST_SCHEMA_STR"><code>REQUEST\_SCHEMA\_STR</code></a>: Type schema of <code> data</code> (when <code>listEncoding</code> is <code> BINARY</code>), in \[\["{"{"}column\_name{"}"}","{"{"}column\_type{"}"}"]] format. When non-empty and different from the table's schema, the server remaps the incoming records to the table's full schema. Columns present in the table but absent from this schema are filled using their default values, NULL (if nullable), or an error is returned. If empty, records must match the table's full schema. The default value is ''. </li>
                      <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRANSFORMATIONS"><code>TRANSFORMATIONS</code></a>: Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column -- the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ''. </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>
              </div>
            </li>
          </ul>
        </div>
      </li>

      <li>
        <div className="section method-details" id="method-detail">
          <h2>Method Details</h2>

          <ul className="member-list">
            <li>
              <div className="section detail" id="getTableName()">
                <h3>getTableName</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><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></span> <span className="element-name">getTableName</span>()</div>
                <div className="block">Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table.</div>

                <div className="dl notes">
                  <div className="dt">Returns:</div>
                  <div className="dd">The current value of <code>tableName</code>.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="setTableName(java.lang.String)">
                <h3>setTableName</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a>\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></span> <span className="element-name">setTableName</span><wbr /><span className="parameters">(<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> tableName)</span></div>
                <div className="block">Name of table to which the records are to be added, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table.</div>

                <div className="dl notes">
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>tableName</code> - The new value for <code>tableName</code>.</div>
                  <div className="dt">Returns:</div>
                  <div className="dd"><code>this</code> to mimic the builder pattern.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="getData()">
                <h3>getData</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><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="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></span> <span className="element-name">getData</span>()</div>
                <div className="block">An array of binary-encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if <code> listEncoding</code> is <code>JSON</code>.</div>

                <div className="dl notes">
                  <div className="dt">Returns:</div>
                  <div className="dd">The current value of <code>data</code>.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="setData(java.util.List)">
                <h3>setData</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a>\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></span> <span className="element-name">setData</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="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>> data)</span></div>
                <div className="block">An array of binary-encoded data for the records to be added. All records must be of the same type as that of the table. Empty array if <code> listEncoding</code> is <code>JSON</code>.</div>

                <div className="dl notes">
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>data</code> - The new value for <code>data</code>.</div>
                  <div className="dt">Returns:</div>
                  <div className="dd"><code>this</code> to mimic the builder pattern.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="getOptions()">
                <h3>getOptions</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><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>></span> <span className="element-name">getOptions</span>()</div>

                <div className="block">
                  Optional parameters.

                  <ul>
                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a>: Specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be "upserted"). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>, <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>, and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key, then this option has no effect. Supported values:

                      <ul>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Upsert new records when primary keys match existing records. </li>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Reject new records when primary keys match existing records. </li>
                      </ul>

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ENABLE_INPLACE_UPDATES"><code>ENABLE\_INPLACE\_UPDATES</code></a>: Applies only when upserting (when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, an existing record matched by primary key is modified in place. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>: Specifies the record collision error-suppression policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a> and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key or if upsert mode is in effect (<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>), then this option has no effect. Supported values:

                      <ul>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Ignore new records whose primary key values collide with those of existing records. </li>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Treat as errors any new records whose primary key values collide with those of existing records. </li>
                      </ul>

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

                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_HIGHER"><code>PK\_CONFLICT\_PREDICATE\_HIGHER</code></a>: The record with higher value for the column resolves the primary-key insert conflict. The default value is ''. </li>
                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_LOWER"><code>PK\_CONFLICT\_PREDICATE\_LOWER</code></a>: The record with lower value for the column resolves the primary-key insert conflict. The default value is ''. </li>

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_RECORD_IDS"><code>RETURN\_RECORD\_IDS</code></a>: If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a> then return the internal record id along for each inserted record. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUNCATE_STRINGS"><code>TRUNCATE\_STRINGS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any strings which are too long for their target charN string columns will be truncated to fit. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, success will always be returned, and any errors found will be included in the info map. The "bad\_record\_indices" entry is a comma-separated list of bad records (0-based). If so, there will also be an "error\_N" entry for each record with an error, where N is the index (0-based). Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, all correct records will be inserted and incorrect records will be rejected and reported. Otherwise, the entire batch will be rejected if any records are incorrect. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#DRY_RUN"><code>DRY\_RUN</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, no data will be saved and any errors will be returned. Supported values:

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

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

                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#REQUEST_SCHEMA_STR"><code>REQUEST\_SCHEMA\_STR</code></a>: Type schema of <a href="#getData()"><code>data</code></a> (when <code>listEncoding</code> is <code>BINARY</code>), in \[\["{"{"}column\_name{"}"}","{"{"}column\_type{"}"}"]] format. When non-empty and different from the table's schema, the server remaps the incoming records to the table's full schema. Columns present in the table but absent from this schema are filled using their default values, NULL (if nullable), or an error is returned. If empty, records must match the table's full schema. The default value is ''. </li>
                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRANSFORMATIONS"><code>TRANSFORMATIONS</code></a>: Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column -- the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ''. </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="dl notes">
                  <div className="dt">Returns:</div>
                  <div className="dd">The current value of <code>options</code>.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="setOptions(java.util.Map)">
                <h3>setOptions</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="class in com.gpudb.protocol">InsertRecordsRequest</a>\<<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest" title="type parameter in InsertRecordsRequest">T</a>></span> <span className="element-name">setOptions</span><wbr /><span className="parameters">(<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></div>

                <div className="block">
                  Optional parameters.

                  <ul>
                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a>: Specifies the record collision policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be "upserted"). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>, <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>, and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key, then this option has no effect. Supported values:

                      <ul>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Upsert new records when primary keys match existing records. </li>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Reject new records when primary keys match existing records. </li>
                      </ul>

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ENABLE_INPLACE_UPDATES"><code>ENABLE\_INPLACE\_UPDATES</code></a>: Applies only when upserting (when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, an existing record matched by primary key is modified in place. If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, it is updated by deleting the existing record and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#IGNORE_EXISTING_PK"><code>IGNORE\_EXISTING\_PK</code></a>: Specifies the record collision error-suppression policy for inserting into a table with a <a href="/content/concepts/tables/#primary-keys" target="_top">primary key</a>, only used when not in upsert mode (upsert mode is disabled when <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>). If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>, the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a> and <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>. If the specified table does not have a primary key or if upsert mode is in effect (<a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#UPDATE_ON_EXISTING_PK"><code>UPDATE\_ON\_EXISTING\_PK</code></a> is <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>), then this option has no effect. Supported values:

                      <ul>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>: Ignore new records whose primary key values collide with those of existing records. </li>
                        <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#FALSE"><code>FALSE</code></a>: Treat as errors any new records whose primary key values collide with those of existing records. </li>
                      </ul>

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

                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_HIGHER"><code>PK\_CONFLICT\_PREDICATE\_HIGHER</code></a>: The record with higher value for the column resolves the primary-key insert conflict. The default value is ''. </li>
                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#PK_CONFLICT_PREDICATE_LOWER"><code>PK\_CONFLICT\_PREDICATE\_LOWER</code></a>: The record with lower value for the column resolves the primary-key insert conflict. The default value is ''. </li>

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_RECORD_IDS"><code>RETURN\_RECORD\_IDS</code></a>: If <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a> then return the internal record id along for each inserted record. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUNCATE_STRINGS"><code>TRUNCATE\_STRINGS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, any strings which are too long for their target charN string columns will be truncated to fit. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#RETURN_INDIVIDUAL_ERRORS"><code>RETURN\_INDIVIDUAL\_ERRORS</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, success will always be returned, and any errors found will be included in the info map. The "bad\_record\_indices" entry is a comma-separated list of bad records (0-based). If so, there will also be an "error\_N" entry for each record with an error, where N is the index (0-based). Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#ALLOW_PARTIAL_BATCH"><code>ALLOW\_PARTIAL\_BATCH</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, all correct records will be inserted and incorrect records will be rejected and reported. Otherwise, the entire batch will be rejected if any records are incorrect. Supported values:

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

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

                    <li>
                      <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#DRY_RUN"><code>DRY\_RUN</code></a>: If set to <a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRUE"><code>TRUE</code></a>, no data will be saved and any errors will be returned. Supported values:

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

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

                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#REQUEST_SCHEMA_STR"><code>REQUEST\_SCHEMA\_STR</code></a>: Type schema of <a href="#getData()"><code>data</code></a> (when <code>listEncoding</code> is <code>BINARY</code>), in \[\["{"{"}column\_name{"}"}","{"{"}column\_type{"}"}"]] format. When non-empty and different from the table's schema, the server remaps the incoming records to the table's full schema. Columns present in the table but absent from this schema are filled using their default values, NULL (if nullable), or an error is returned. If empty, records must match the table's full schema. The default value is ''. </li>
                    <li><a href="/content/api/java/com/gpudb/protocol/InsertRecordsRequest.Options#TRANSFORMATIONS"><code>TRANSFORMATIONS</code></a>: Comma-separated expressions, one per target table column. Each expression is evaluated per record. Empty entries (two consecutive commas) mean no transformation for that column -- the value is resolved from the input record, table default, NULL, or an error. Expressions may reference input columns by name or by position ($1 for the first input column, $2 for the second, etc.). The default value is ''. </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="dl notes">
                  <div className="dt">Parameters:</div>
                  <div className="dd"><code>options</code> - The new value for <code>options</code>.</div>
                  <div className="dt">Returns:</div>
                  <div className="dd"><code>this</code> to mimic the builder pattern.</div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="equals(java.lang.Object)">
                <h3>equals</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type">boolean</span> <span className="element-name">equals</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a> obj)</span></div>

                <div className="dl notes">
                  <div className="dt">Overrides:</div>
                  <div className="dd"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" className="external-link">equals</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></code></div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="toString()">
                <h3>toString</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><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></span> <span className="element-name">toString</span>()</div>

                <div className="dl notes">
                  <div className="dt">Overrides:</div>
                  <div className="dd"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" className="external-link">toString</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></code></div>
                </div>
              </div>
            </li>

            <li>
              <div className="section detail" id="hashCode()">
                <h3>hashCode</h3>
                <div className="member-signature"><span className="modifiers">public</span> <span className="return-type">int</span> <span className="element-name">hashCode</span>()</div>

                <div className="dl notes">
                  <div className="dt">Overrides:</div>
                  <div className="dd"><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" className="external-link">hashCode</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" className="external-link">Object</a></code></div>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </li>
    </ul>
  </div>
</div>
