olp-cpp-sdk
1.22.0
|
Publishes data to an index layer. More...
#include <IndexLayerClient.h>
Public Member Functions | |
IndexLayerClient (client::HRN catalog, client::OlpClientSettings settings) | |
Creates the IndexLayerClient instance. More... | |
void | CancelPendingRequests () |
Cancels all the ongoing operations that this client started. More... | |
olp::client::CancellableFuture< PublishIndexResponse > | PublishIndex (model::PublishIndexRequest request) |
Publishes the index to the index layer. More... | |
olp::client::CancellationToken | PublishIndex (model::PublishIndexRequest request, PublishIndexCallback callback) |
Publishes the index to the index layer. More... | |
olp::client::CancellationToken | DeleteIndexData (model::DeleteIndexDataRequest request, DeleteIndexDataCallback callback) |
Deletes the data blob that is stored under the index layer. More... | |
olp::client::CancellableFuture< DeleteIndexDataResponse > | DeleteIndexData (model::DeleteIndexDataRequest request) |
Deletes the data blob that is stored under the index layer. More... | |
olp::client::CancellableFuture< UpdateIndexResponse > | UpdateIndex (model::UpdateIndexRequest request) |
Updates index information in the index layer. More... | |
olp::client::CancellationToken | UpdateIndex (model::UpdateIndexRequest request, UpdateIndexCallback callback) |
Updates index information in the index layer. More... | |
Publishes data to an index layer.
olp::dataservice::write::IndexLayerClient::IndexLayerClient | ( | client::HRN | catalog, |
client::OlpClientSettings | settings | ||
) |
Creates the IndexLayerClient
instance.
catalog | The HRN of the catalog to which this client writes. |
settings | The client settings used to control the behavior of the client instance. |
void olp::dataservice::write::IndexLayerClient::CancelPendingRequests | ( | ) |
Cancels all the ongoing operations that this client started.
It returns instantly and does not wait for callbacks. Use this operation to cancel all the pending requests without destroying the actual client instance.
olp::client::CancellableFuture<DeleteIndexDataResponse> olp::dataservice::write::IndexLayerClient::DeleteIndexData | ( | model::DeleteIndexDataRequest | request | ) |
Deletes the data blob that is stored under the index layer.
request | The DeleteIndexDataRequest object. |
CancellableFuture
that contains DeleteIndexDataResponse
. olp::client::CancellationToken olp::dataservice::write::IndexLayerClient::DeleteIndexData | ( | model::DeleteIndexDataRequest | request, |
DeleteIndexDataCallback | callback | ||
) |
Deletes the data blob that is stored under the index layer.
request | The DeleteIndexDataRequest object. |
callback | DeleteIndexDataCallback that is called with DeleteIndexDataResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<PublishIndexResponse> olp::dataservice::write::IndexLayerClient::PublishIndex | ( | model::PublishIndexRequest | request | ) |
Publishes the index to the index layer.
request | The PublishIndexRequest object. |
CancellableFuture
that contains PublishIndexResponse
. olp::client::CancellationToken olp::dataservice::write::IndexLayerClient::PublishIndex | ( | model::PublishIndexRequest | request, |
PublishIndexCallback | callback | ||
) |
Publishes the index to the index layer.
request | The PublishIndexRequest object. |
callback | PublishIndexCallback that is called with PublishIndexResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<UpdateIndexResponse> olp::dataservice::write::IndexLayerClient::UpdateIndex | ( | model::UpdateIndexRequest | request | ) |
Updates index information in the index layer.
request | The UpdateIndexRequest object. |
CancellableFuture
that contains PublishIndexResponse
. olp::client::CancellationToken olp::dataservice::write::IndexLayerClient::UpdateIndex | ( | model::UpdateIndexRequest | request, |
UpdateIndexCallback | callback | ||
) |
Updates index information in the index layer.
request | The UpdateIndexRequest object. |
callback | PublishIndexCallback that is called with PublishIndexResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request.