Skip to main content

◆ GPUdb() [1/4]

gpudb::GPUdb::GPUdb (const HttpUrl &url,
const Options &options = Options() )

Pass a single HttpURL and options to instantiate a GPUdb object.

Parameters
[in]urlAn HttpURL object containing the single host URL for the client. If no primary URL is specified via the options, the given URL will be used as the primary URL.
[in]optionsAn optional GPUdb::Options object containing options, e.g. primary cluster URL, used to the create the GPUdb object.

◆ GPUdb() [2/4]

gpudb::GPUdb::GPUdb (const std::string &url,
const Options &options = Options() )

Pass a single or multiple, comma-separated URLs as a string and optional options to instantiate a GPUdb object.

Parameters
[in]urlAn std::string containing the one host URL or a comma-separated string with multiple host URLs for the client. For example ‘http://172.42.40.1:9191,,http://172.42.40.2:9191’. If a single URL is given, and no primary URL is specified via the options, the given URL will be used as the primary URL.
[in]optionsAn optional GPUdb::Options object containing options, e.g. primary cluster URL, used to the create the GPUdb object.

◆ GPUdb() [3/4]

gpudb::GPUdb::GPUdb (const std::vector< HttpUrl > &urls,
const Options &options = Options() )

Pass multiple HttpURLs and optional options to instantiate a GPUdb object.

Parameters
[in]urlsThe host URLs for the client. If a single URL is given, and no primary URL is specified via the options, the given URL will be used as the primary URL.
[in]optionsAn optional GPUdb::Options object containing options, e.g. primary cluster URL, used to the create the GPUdb object.

◆ GPUdb() [4/4]

gpudb::GPUdb::GPUdb (const std::vector< std::string > &urls,
const Options &options = Options() )

Pass multiple strings, each containing a single URL, and optional options to instantiate a GPUdb object.

Parameters
[in]urlsThe host URLs for the client. Each string must contain a single valid URL. If a single URL is given, and no primary URL is specified via the options, the given URL will be used as the primary URL.
[in]optionsAn optional GPUdb::Options object containing options, e.g. primary cluster URL, used to the create the GPUdb object.