Provides a high-level interface to access data hosted on OLP
using the Data API.
More...
#include <CatalogClient.h>
Provides a high-level interface to access data hosted on OLP
using the Data API.
The behavior of the CatalogClient
object can be defined via OlpClientSettings
.
You can overwrite the default implementation for the following items:
◆ CatalogClient()
Creates the CatalogClient
instance.
- Parameters
-
catalog | The HERE Resource Name (HRN) of the OLP catalog. |
settings | The desired configuration of the CatalogClient instance. |
◆ CancelPendingRequests()
bool olp::dataservice::read::CatalogClient::CancelPendingRequests |
( |
| ) |
|
Cancels the currently active requests.
- Returns
- True on success.
◆ GetCatalog() [1/2]
Gets the catalog configuration asynchronously.
- Parameters
-
request | The CatalogRequest instance that contains a complete set of request parameters. |
- Returns
CancellableFuture
that contains the CatalogResponse
instance with the catalog configuration or an error. You can also use CancellableFuture
to cancel this request.
◆ GetCatalog() [2/2]
Gets the catalog configuration asynchronously.
- Parameters
-
request | The CatalogRequest instance that contains a complete set of request parameters. |
callback | The CatalogResponseCallback object that is invoked if the catalog configuration is available or an error is encountered. |
- Returns
- A token that can be used to cancel this request.
◆ GetCompatibleVersions() [1/2]
Gets the list of the current catalog versions that are compatible with the dependencies provided by the request.
- Note
- This request is online only. It does not support multiple pages and returns only the first page.
- Parameters
-
- Returns
CancellableFuture
that contains the VersionsResponse
instance with the list of versions or an error. You can also use CancellableFuture
to cancel this request.
◆ GetCompatibleVersions() [2/2]
Gets the list of the current catalog versions that are compatible with the dependencies provided by the request.
- Note
- This request is online only. It does not support multiple pages and returns only the first page.
- Parameters
-
request | The CompatibleVersionsRequest instance that contains a complete set of the request parameters. |
callback | The CompatibleVersionsCallback object that is invoked if the compatible versions are available or an error occurred. |
- Returns
- A token that can be used to cancel this request.
◆ GetLatestVersion() [1/2]
Gets the catalog version asynchronously.
- Note
- In case you call this API with
FetchOptions::CacheOnly
and a valid version in CatalogVersionRequest::WithStartVersion()
, i.e. >= 0, then please make sure that the provided version is a existing catalog version as it will be written for later use to the cache as latest version in the following cases:
- There is no latest version yet written to cache.
- The latest version written to cache is less then the provided version.
- Parameters
-
- Returns
CancellableFuture
that contains the CatalogVersionResponse
instance with the catalog configuration or an error. You can also use CancellableFuture
to cancel this request.
◆ GetLatestVersion() [2/2]
Gets the catalog version asynchronously.
- Note
- In case you call this API with
FetchOptions::CacheOnly
and a valid version in CatalogVersionRequest::WithStartVersion()
, i.e. >= 0, then please make sure that the provided version is a existing catalog version as it will be written for later use to the cache as latest version in the following cases:
- There is no latest version yet written to cache.
- The latest version written to cache is less then the provided version.
- Parameters
-
request | The CatalogVersionRequest instance that contains a complete set of request parameters. |
callback | The CatalogVersionCallback object that is invoked if the catalog version is available or an error is encountered. |
- Returns
- A token that can be used to cancel this request.
◆ ListVersions() [1/2]
Gets the catalog versions list.
- Note
- Request of catalog versions list works only online.
- Parameters
-
request | The VersionsRequest instance that contains a complete set of request parameters. |
- Returns
- CancellableFuture
that contains the
VersionsResponse` instance with the list of versions or an error. You can also use CancellableFuture
to cancel this request.
◆ ListVersions() [2/2]
Gets the catalog versions list.
- Note
- Request of catalog versions list works only online.
- Parameters
-
request | The VersionsRequest instance that contains a complete set of request parameters. |
callback | The VersionsResponseCallback object that is invoked if the list of versions is available or an error is encountered. |
- Returns
- A token that can be used to cancel this request.
The documentation for this class was generated from the following file: