olp-cpp-sdk
1.22.0
|
Publishes data to a volatile layer. More...
#include <VolatileLayerClient.h>
Publishes data to a volatile layer.
olp::dataservice::write::VolatileLayerClient::VolatileLayerClient | ( | client::HRN | catalog, |
client::OlpClientSettings | settings | ||
) |
Creates the VolatileLayerClient
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::VolatileLayerClient::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<CompleteBatchResponse> olp::dataservice::write::VolatileLayerClient::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::VolatileLayerClient::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::VolatileLayerClient::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::VolatileLayerClient::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::VolatileLayerClient::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::VolatileLayerClient::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::VolatileLayerClient::PublishPartitionData | ( | model::PublishPartitionDataRequest | request | ) |
Publishes data to the volatile layer.
request | The PublishPartitionDataRequest object. |
CancellableFuture
that contains PublishPartitionDataResponse
. olp::client::CancellationToken olp::dataservice::write::VolatileLayerClient::PublishPartitionData | ( | model::PublishPartitionDataRequest | request, |
PublishPartitionDataCallback | callback | ||
) |
Publishes data to the volatile layer.
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<PublishToBatchResponse> olp::dataservice::write::VolatileLayerClient::PublishToBatch | ( | const model::Publication & | pub, |
const std::vector< model::PublishPartitionDataRequest > & | partitions | ||
) |
Publishes metadata to the HERE platform.
This task consists of two steps:
This API handles the first step, which has to be done before publishing the data blob. Otherwise, clients will receive an empty vector from the publishing result. Changing the metadata of the partition results in updating the catalog version.
pub | The Publication instance. |
partitions | A group of PublishPartitionDataRequest objects that have the following fields: layer ID, partition, HERE checksum, and data. Do not define the data as this call is only for updating metadata. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellationToken olp::dataservice::write::VolatileLayerClient::PublishToBatch | ( | const model::Publication & | pub, |
const std::vector< model::PublishPartitionDataRequest > & | partitions, | ||
PublishToBatchCallback | callback | ||
) |
Publishes metadata to the HERE platform.
This task consists of two steps:
This API handles the first step, which has to be done before publishing the data blob. Otherwise, clients will receive an empty vector from the publishing result. Changing the metadata of the partition results in updating the catalog version.
pub | The Publication instance. |
partitions | A group of PublishPartitionDataRequest objects that have the following fields: layer ID, partition, HERE checksum, and data. Do not define the data as this call is only for updating metadata. |
callback | PublishToBatchCallback that is called with PublishToBatchResponse` when the operation completes. |
CancellationToken
that can be used to cancel the ongoing request. olp::client::CancellableFuture<StartBatchResponse> olp::dataservice::write::VolatileLayerClient::StartBatch | ( | model::StartBatchRequest | request | ) |
Starts the batch operation.
request | The StartBatchRequest object. |
CancellableFuture
that contains StartBatchResponse
. olp::client::CancellationToken olp::dataservice::write::VolatileLayerClient::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.