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

# createTriggerByArea

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="createTriggerByArea(com.gpudb.protocol.CreateTriggerByAreaRequest)">
        <h3>createTriggerByArea</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateTriggerByAreaResponse" title="class in com.gpudb.protocol">CreateTriggerByAreaResponse</a></span> <span className="element-name">createTriggerByArea</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/CreateTriggerByAreaRequest" title="class in com.gpudb.protocol">CreateTriggerByAreaRequest</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">
          Sets up an area trigger mechanism for two column\_names for one or more tables. (This function is essentially the two-dimensional version of <a href="#createTriggerByRange(com.gpudb.protocol.CreateTriggerByRangeRequest)"><code>createTriggerByRange</code></a>.) Once the trigger has been activated, any record added to the listed tables(s) via <a href="#insertRecords(com.gpudb.protocol.InsertRecordsRequest)"><code>insertRecords</code></a> with the chosen columns' values falling within the specified region will trip the trigger. All such records will be queued at the trigger port (by default '9001' but able to be retrieved via <a href="#showSystemStatus(com.gpudb.protocol.ShowSystemStatusRequest)"><code>showSystemStatus</code></a>) for any listening client to collect. Active triggers can be cancelled by using the <a href="#clearTrigger(com.gpudb.protocol.ClearTriggerRequest)"><code>clearTrigger</code></a> endpoint or by clearing all relevant tables.
          <p> The output returns the trigger handle as well as indicating success or failure of the trigger activation.</p>
        </div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/CreateTriggerByAreaRequest" 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/CreateTriggerByAreaResponse" 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="createTriggerByArea(java.lang.String,java.util.List,java.lang.String,java.util.List,java.lang.String,java.util.List,java.util.Map)">
        <h3>createTriggerByArea</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/CreateTriggerByAreaResponse" title="class in com.gpudb.protocol">CreateTriggerByAreaResponse</a></span> <span className="element-name">createTriggerByArea</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> requestId, <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/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> xColumnName, <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/Double.html" title="class or interface in java.lang" className="external-link">Double</a>> xVector, <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> yColumnName, <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/Double.html" title="class or interface in java.lang" className="external-link">Double</a>> yVector, <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">
          Sets up an area trigger mechanism for two column\_names for one or more tables. (This function is essentially the two-dimensional version of <a href="#createTriggerByRange(java.lang.String,java.util.List,java.lang.String,double,double,java.util.Map)"><code>createTriggerByRange</code></a>.) Once the trigger has been activated, any record added to the listed tables(s) via <a href="#insertRecords(java.lang.String,java.util.List,java.util.Map)"><code>insertRecords</code></a> with the chosen columns' values falling within the specified region will trip the trigger. All such records will be queued at the trigger port (by default '9001' but able to be retrieved via <a href="#showSystemStatus(java.util.Map)"><code>showSystemStatus</code></a>) for any listening client to collect. Active triggers can be cancelled by using the <a href="#clearTrigger(java.lang.String,java.util.Map)"><code>clearTrigger</code></a> endpoint or by clearing all relevant tables.
          <p> The output returns the trigger handle as well as indicating success or failure of the trigger activation.</p>
        </div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>requestId</code> - User-created ID for the trigger. The ID can be alphanumeric, contain symbols, and must contain at least one character.</div>
          <div className="dd"><code>tableNames</code> - Names of the tables on which the trigger will be activated and maintained, each in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>.</div>
          <div className="dd"><code>xColumnName</code> - Name of a numeric column on which the trigger is activated. Usually 'x' for geospatial data points.</div>
          <div className="dd"><code>xVector</code> - The respective coordinate values for the region on which the trigger is activated. This usually translates to the x-coordinates of a geospatial region.</div>
          <div className="dd"><code>yColumnName</code> - Name of a second numeric column on which the trigger is activated. Usually 'y' for geospatial data points.</div>
          <div className="dd"><code>yVector</code> - The respective coordinate values for the region on which the trigger is activated. This usually translates to the y-coordinates of a geospatial region. Must be the same length as xvals.</div>
          <div className="dd"><code>options</code> - Optional parameters. 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/CreateTriggerByAreaResponse" 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>
