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

# CreateProcRequest.ExecutionMode

> CreateProcRequest.ExecutionMode — Kinetica Java API

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

# Class CreateProcRequest.ExecutionMode

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

Enclosing class:`CreateProcRequest`

***

public static final class CreateProcRequest.ExecutionMode extends [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)

A set of string constants for the [`CreateProcRequest`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/CreateProcRequest) parameter [`executionMode`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/CreateProcRequest#getExecutionMode\(\)).
&#x20;The execution mode of the proc.

<ul>
  <li>
    ## Field Summary

    Fields

    Modifier and TypeFieldDescription`static final String``DISTRIBUTED`

    Input table data will be divided into data segments that are distributed across all nodes in the cluster, and the proc command will be invoked once per data segment in parallel.

    `static final String``NONDISTRIBUTED`

    The proc command will be invoked only once per execution, and will not have direct access to any tables named as input or output table parameters in the call to [`GPUdb.executeProc`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/executeproc#executeProc\(com.gpudb.protocol.ExecuteProcRequest\)).
  </li>

  <li>
    ## Method Summary

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

<ul>
  <li>
    ## Field Details

    <ul>
      <li>
        ### DISTRIBUTED

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) DISTRIBUTEDInput table data will be divided into data segments that are distributed across all nodes in the cluster, and the proc command will be invoked once per data segment in parallel. Output table data from each invocation will be saved to the same node as the corresponding input data.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.CreateProcRequest.ExecutionMode.DISTRIBUTED)</li>
        </ul>
      </li>

      <li>
        ### NONDISTRIBUTED

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) NONDISTRIBUTEDThe proc command will be invoked only once per execution, and will not have direct access to any tables named as input or output table parameters in the call to [`GPUdb.executeProc`](https://docs.kinetica.com/content/api/java/com/gpudb/GPUdb/executeproc#executeProc\(com.gpudb.protocol.ExecuteProcRequest\)). It will, however, be able to access the database using native API calls.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.CreateProcRequest.ExecutionMode.NONDISTRIBUTED)</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>


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