◆ createProc() [1/4]
| CreateProcResponse gpudb::GPUdb::createProc | ( | const CreateProcRequest & | request_ | ) | const |
Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.
Parameters
| [in] | request_ | Request object containing the parameters for the operation. |
Returns
Response object containing the result of the operation.
◆ createProc() [2/4]
| CreateProcResponse & gpudb::GPUdb::createProc | ( | const CreateProcRequest & | request_, |
| CreateProcResponse & | response_ ) const |
Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.
Parameters
Returns
Response object containing the result of the operation (initially passed in by reference).
◆ createProc() [3/4]
| CreateProcResponse gpudb::GPUdb::createProc | ( | const std::string & | procName, |
| const std::string & | executionMode, | ||
| const std::map< std::string, std::vector< uint8_t > > & | files, | ||
| const std::string & | command, | ||
| const std::vector< std::string > & | args, | ||
| const std::map< std::string, std::string > & | options ) const |
Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.
Parameters
| [in] | procName | Name of the proc to be created. Must not be the name of a currently existing proc. |
| [in] | executionMode | The execution mode of the proc. Supported values:
|
| [in] | files | A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. ‘subdir/file’) but must not resolve to a directory above the root for the proc. Files may be loaded from existing files in KiFS. Those file names should be prefixed with the uri kifs:// and the values in the map should be empty. The default value is an empty map. |
| [in] | command | The command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc files and may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be ‘java’ if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with ’./’ as per Linux convention. If not specified, and exactly one file is provided in files, that file will be invoked. The default value is ”. |
| [in] | args | An array of command-line arguments that will be passed to command when the proc is executed. The default value is an empty vector. |
| [in] | options | Optional parameters.
|
Returns
Response object containing the result of the operation.
◆ createProc() [4/4]
| CreateProcResponse & gpudb::GPUdb::createProc | ( | const std::string & | procName, |
| const std::string & | executionMode, | ||
| const std::map< std::string, std::vector< uint8_t > > & | files, | ||
| const std::string & | command, | ||
| const std::vector< std::string > & | args, | ||
| const std::map< std::string, std::string > & | options, | ||
| CreateProcResponse & | response_ ) const |
Creates an instance (proc) of the user-defined functions (UDF) specified by the given command, options, and files, and makes it available for execution.
Parameters
| [in] | procName | Name of the proc to be created. Must not be the name of a currently existing proc. |
| [in] | executionMode | The execution mode of the proc. Supported values:
|
| [in] | files | A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. ‘subdir/file’) but must not resolve to a directory above the root for the proc. Files may be loaded from existing files in KiFS. Those file names should be prefixed with the uri kifs:// and the values in the map should be empty. The default value is an empty map. |
| [in] | command | The command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc files and may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be ‘java’ if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with ’./’ as per Linux convention. If not specified, and exactly one file is provided in files, that file will be invoked. The default value is ”. |
| [in] | args | An array of command-line arguments that will be passed to command when the proc is executed. The default value is an empty vector. |
| [in] | options | Optional parameters.
|
| [out] | response_ | Response object containing the results of the operation. |
Returns
Response object containing the result of the operation (initially passed in by reference).