Skip to main content
  • createDatasource

    public CreateDatasourceResponse createDatasource(CreateDatasourceRequest request) throws GPUdbException
    Creates a data source, which contains the location and connection information for a data store that is external to the database.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • createDatasource

    public CreateDatasourceResponse createDatasource(String name, String location, String userName, String password, Map<String,String> options) throws GPUdbException
    Creates a data source, which contains the location and connection information for a data store that is external to the database.
    Parameters:
    name - Name of the data source to be created.
    location - Location of the remote storage in ‘storage_provider_type://[storage_path[:storage_port]]’ format. Supported storage provider types are ‘azure’, ‘gcs’, ‘hdfs’, ‘jdbc’, ‘kafka’, ‘confluent’, and ‘s3’.
    userName - Name of the remote system user; may be an empty string.
    password - Password for the remote system user; may be an empty string.
    options - Optional parameters.The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.