olp-cpp-sdk
1.22.0
|
Publishes data to a versioned layers. More...
#include <VersionedLayerClient.h>
Publishes data to a versioned layers.
olp::dataservice::write::VersionedLayerClient::VersionedLayerClient | ( | client::HRN | catalog, |
client::OlpClientSettings | settings | ||
) |
Creates the VersionedLayerClient
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. |
olp::client::CancellableFuture<CancelBatchResponse> olp::dataservice::write::VersionedLayerClient::CancelBatch | ( | const model::Publication & | pub | ) |
Cancels the batch operation.
pub | The Publication instance. |
that contains
CancelBatchResponse`. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::CancelBatch | ( | const model::Publication & | pub, |
CancelBatchCallback | callback | ||
) |
Cancels the batch operation.
pub | The Publication instance. |
callback | CancelBatchCallback that is called with CancelBatchResponse when the operation is cancelled. |
CancellationToken
that can be used to cancel the ongoing request. void olp::dataservice::write::VersionedLayerClient::CancelPendingRequests | ( | ) |
Cancels all the ongoing operations that this client started.
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<CheckDataExistsResponse> olp::dataservice::write::VersionedLayerClient::CheckDataExists | ( | model::CheckDataExistsRequest | request | ) |
Checks whether the data handle exits.
request | The CheckDataExistsRequest object. |
CancellableFuture
that contains CheckDataExistsResponse
. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::CheckDataExists | ( | model::CheckDataExistsRequest | request, |
CheckDataExistsCallback | callback | ||
) |
Checks whether the data handle exits.
request | The CheckDataExistsRequest object. |
callback | CheckDataExistsCallback that is called with CheckDataExistsResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<CompleteBatchResponse> olp::dataservice::write::VersionedLayerClient::CompleteBatch | ( | const model::Publication & | pub | ) |
Completes the batch operation and commits it to the HERE platform.
pub | The Publication instance. |
CancellableFuture
that contains CompleteBatchResponse
. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::CompleteBatch | ( | const model::Publication & | pub, |
CompleteBatchCallback | callback | ||
) |
Completes the batch operation and commits it to the HERE platform.
pub | The Publication instance. |
callback | CompleteBatchCallback that is called with CompleteBatchResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<GetBaseVersionResponse> olp::dataservice::write::VersionedLayerClient::GetBaseVersion | ( | ) |
Gets the latest version number of the catalog.
CancellableFuture
that contains the latest version number of the catalog. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::GetBaseVersion | ( | GetBaseVersionCallback | callback | ) |
Gets the latest version number of the catalog.
callback | GetBaseVersionCallback that is called with GetBaseVersionResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<GetBatchResponse> olp::dataservice::write::VersionedLayerClient::GetBatch | ( | const model::Publication & | pub | ) |
Gets the details of the batch publication.
pub | The Publication instance. |
CancellableFuture
that contains the details of the batch publication. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::GetBatch | ( | const model::Publication & | pub, |
GetBatchCallback | callback | ||
) |
Gets the details of the batch publication.
pub | The Publication instance. |
callback | GetBatchCallback that is called with GetBatchResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<PublishPartitionDataResponse> olp::dataservice::write::VersionedLayerClient::PublishToBatch | ( | const model::Publication & | pub, |
model::PublishPartitionDataRequest | request | ||
) |
Publishes data to the versioned layer.
pub | The Publication instance. |
request | The PublishPartitionDataRequest object. |
CancellableFuture
that contains PublishPartitionDataResponse
. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::PublishToBatch | ( | const model::Publication & | pub, |
model::PublishPartitionDataRequest | request, | ||
PublishPartitionDataCallback | callback | ||
) |
Publishes data to the versioned layer.
pub | The Publication instance. |
request | The PublishPartitionDataRequest object. |
callback | PublishPartitionDataCallback that is called with PublishPartitionDataResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<StartBatchResponse> olp::dataservice::write::VersionedLayerClient::StartBatch | ( | model::StartBatchRequest | request | ) |
Starts the batch operation.
request | The StartBatchRequest object. |
CancellableFuture
that contains StartBatchResponse
. olp::client::CancellationToken olp::dataservice::write::VersionedLayerClient::StartBatch | ( | model::StartBatchRequest | request, |
StartBatchCallback | callback | ||
) |
Starts the batch operation.
request | The StartBatchRequest object. |
callback | StartBatchCallback that is called with StartBatchResponse when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request.