Skip to main content

◆ createTableExternal() [1/4]

CreateTableExternalResponse gpudb::GPUdb::createTableExternal (const CreateTableExternalRequest &request_) const

Creates a new external table, which is a local database object whose source data is located externally to the database.

The source data can be located either in KiFS; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external data source.

The external table can have its structure defined explicitly, via createTableOptions, which contains many of the options from createTable; or defined implicitly, inferred from the source data.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ createTableExternal() [2/4]

CreateTableExternalResponse & gpudb::GPUdb::createTableExternal (const CreateTableExternalRequest &request_,
CreateTableExternalResponse &response_ ) const

Creates a new external table, which is a local database object whose source data is located externally to the database.

The source data can be located either in KiFS; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external data source.

The external table can have its structure defined explicitly, via createTableOptions, which contains many of the options from createTable; or defined implicitly, inferred from the source data.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ createTableExternal() [3/4]

CreateTableExternalResponse gpudb::GPUdb::createTableExternal (const std::string &tableName,
const std::vector< std::string > &filepaths,
const std::map< std::string, std::map< std::string, std::string > > &modifyColumns,
const std::map< std::string, std::string > &createTableOptions,
const std::map< std::string, std::string > &options ) const

Creates a new external table, which is a local database object whose source data is located externally to the database.

The source data can be located either in KiFS; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external data source.

The external table can have its structure defined explicitly, via createTableOptions, which contains many of the options from createTable; or defined implicitly, inferred from the source data.

Parameters
[in]tableNameName of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria.
[in]filepathsA list of file paths from which data will be sourced; For paths in KiFS, use the URI prefix of kifs:// followed by the path to a file or directory. File matching by prefix is supported, e.g. kifs://dir/file would match dir/file_1 and dir/file_2. When prefix matching is used, the path must start with a full, valid KiFS directory name. If an external data source is specified in datasource_name, these file paths must resolve to accessible files at that data source location. Prefix matching is supported. If the data source is hdfs, prefixes must be aligned with directories, i.e. partial file names will not match. If no data source is specified, the files are assumed to be local to the database and must all be accessible to the gpudb user, residing on the path (or relative to the path) specified by the external files directory in the Kinetica configuration file. Wildcards (*) can be used to specify a group of files. Prefix matching is supported, the prefixes must be aligned with directories. If the first path ends in .tsv, the text delimiter will be defaulted to a tab character. If the first path ends in .psv, the text delimiter will be defaulted to a pipe character (|).
[in]modifyColumnsNot implemented yet. The default value is an empty map.
[in]createTableOptionsOptions from createTable, allowing the structure of the table to be defined independently of the data source.The default value is an empty map.
[in]optionsOptional parameters.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ createTableExternal() [4/4]

CreateTableExternalResponse & gpudb::GPUdb::createTableExternal (const std::string &tableName,
const std::vector< std::string > &filepaths,
const std::map< std::string, std::map< std::string, std::string > > &modifyColumns,
const std::map< std::string, std::string > &createTableOptions,
const std::map< std::string, std::string > &options,
CreateTableExternalResponse &response_ ) const

Creates a new external table, which is a local database object whose source data is located externally to the database.

The source data can be located either in KiFS; on the cluster, accessible to the database; or remotely, accessible via a pre-defined external data source.

The external table can have its structure defined explicitly, via createTableOptions, which contains many of the options from createTable; or defined implicitly, inferred from the source data.

Parameters
[in]tableNameName of the table to be created, in [schema_name.]table_name format, using standard name resolution rules and meeting table naming criteria.
[in]filepathsA list of file paths from which data will be sourced; For paths in KiFS, use the URI prefix of kifs:// followed by the path to a file or directory. File matching by prefix is supported, e.g. kifs://dir/file would match dir/file_1 and dir/file_2. When prefix matching is used, the path must start with a full, valid KiFS directory name. If an external data source is specified in datasource_name, these file paths must resolve to accessible files at that data source location. Prefix matching is supported. If the data source is hdfs, prefixes must be aligned with directories, i.e. partial file names will not match. If no data source is specified, the files are assumed to be local to the database and must all be accessible to the gpudb user, residing on the path (or relative to the path) specified by the external files directory in the Kinetica configuration file. Wildcards (*) can be used to specify a group of files. Prefix matching is supported, the prefixes must be aligned with directories. If the first path ends in .tsv, the text delimiter will be defaulted to a tab character. If the first path ends in .psv, the text delimiter will be defaulted to a pipe character (|).
[in]modifyColumnsNot implemented yet. The default value is an empty map.
[in]createTableOptionsOptions from createTable, allowing the structure of the table to be defined independently of the data source.The default value is an empty map.
[in]optionsOptional parameters.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).