Skip to main content
The cyborg::Client class manages storage configurations and acts as a factory for creating or loading encrypted indexes.

Constructor

Initializes a new instance of Client.

Parameters

Exceptions

  • Throws if the cpu_threads parameter is less than 0.
  • Throws if any DBConfig is invalid.
  • Throws if the GPU is not available when gpu_accelerate is true.
  • Throws if the backing store is not available.
  • Throws if the Client could not be initialized.

Example Usage


Methods

cpu_threads()

Returns the number of CPU threads configured for this client. Returns: int - The number of CPU threads. Example:

gpu_accelerate()

Checks if GPU acceleration is enabled for any operations. Returns: bool - true if GPU is enabled for any operation, false otherwise. Example:

gpu_config()

Returns the GPU operations configuration for this client. Returns: GPUConfig - The GPU operations configuration. Example: