Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/dev_guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Data SDK for C++ package contains three independent modules that focus on di
- `olp-cpp-sdk-dataservice-read` – downloads and caches data from the platform.
- `olp-cpp-sdk-dataservice-write` – queues and uploads data to the platform layers.

For more information about the modules, see the [architectural overview](https://github.com/heremaps/here-olp-sdk-cpp/blob/master/docs/OverallArchitecture.md).
For more information about the modules, see the [architectural overview](https://github.com/heremaps/here-data-sdk-cpp/blob/master/docs/OverallArchitecture.md).

HERE is committed to respecting your privacy and to complying with applicable data protection and privacy laws. For more information, see the [HERE Privacy Charter](https://www.here.com/en-gb/here-privacy-charter).

Expand Down Expand Up @@ -37,4 +37,4 @@ For more information on Data API, see its [Developer Guide](https://docs.here.co

When new API is introduced in the Data SDK for C++, the old one is not deleted straight away. The standard API deprecation time is six months. It gives you time to switch to new code. However, we do not provide ABI backward compatibility.

All of the deprecated methods, functions, and parameters are documented in the Data SDK for C++ [API Reference](https://heremaps.github.io/here-data-sdk-cpp/index.html) and [changelog](https://github.com/heremaps/here-olp-sdk-cpp/blob/master/CHANGELOG.md).
All of the deprecated methods, functions, and parameters are documented in the Data SDK for C++ [API Reference](https://heremaps.github.io/here-data-sdk-cpp/index.html) and [changelog](https://github.com/heremaps/here-data-sdk-cpp/blob/master/CHANGELOG.md).
2 changes: 1 addition & 1 deletion docs/dev_guide/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- [Get data from a versioned layer](../dataservice-read-catalog-example.md#get-data-from-a-versioned-layer)
- [Get data from a versioned layer with a cache](../dataservice-cache-example.md#get-data-from-a-versioned-layer-with-a-cache)
- [Get data from a volatile layer](topics/get-data-from-volatile-layer.md)
- [Get data from a stream layer](../dataservice-read-from-stream-layer-example.md#get-data-from-a-stream-layer)
- [Get data from a stream layer](topics/get-data-from-stream-layer.md)
- [Publish data](topics/publish-data.md)
- [Publish data to a versioned layer](topics/publish-data-to-versioned-layer.md)
- [Publish data to a volatile layer](topics/publish-data-to-volatile-layer.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/dev_guide/topics/get-catalog-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Catalog metadata contains a list of configurations that describe the catalog and
request.WithBillingTag("MyBillingTag");
```

5. Call the `GetRequest` method with the `CatalogRequest` parameter.
5. Call the `GetCatalog` method with the `CatalogRequest` parameter.

```cpp
auto future = catalog_client.GetCatalog(request);
Expand All @@ -44,7 +44,7 @@ Catalog metadata contains a list of configurations that describe the catalog and

```cpp
olp::dataservice::read::CatalogResponse catalog_response = future.GetFuture().get();
````
```

The `CatalogResponse` object holds details of the completed operation and is used to determine operation success and access resultant data:

Expand Down
18 changes: 10 additions & 8 deletions docs/dev_guide/topics/get-data-from-stream-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ You can read messages from a [stream layer](https://docs.here.com/data-api/docs/

```cpp
olp::dataservice::read::StreamLayerClient client(
client::HRN catalog, std::string layer_id,
client::OlpClientSettings settings);
olp::client::HRN(kCatalogHRN), layer_id, client_settings);
```

3. Create the `SubscribeRequest` object with the `serial` or `parallel` subscription type.
Expand All @@ -24,22 +23,25 @@ You can read messages from a [stream layer](https://docs.here.com/data-api/docs/

```cpp
auto request = olp::dataservice::read::SubscribeRequest()
.WithSubscriptionMode(olp::dataservice::read::SubscribeRequest::SubscriptionMode::kSerial));
.WithSubscriptionMode(olp::dataservice::read::SubscribeRequest::SubscriptionMode::kSerial);
```

4. Call the `Subscribe` method with the `SubscribeRequest` parameter.

```cpp
client::CancellableFuture<SubscribeResponse> Subscribe(
SubscribeRequest request);
auto future = client.Subscribe(request);
auto subscribe_response = future.GetFuture().get();
auto subscription_id = subscribe_response.GetResult();
```

You receive a subscription ID from the requested subscription to the selected layer.

5. Call the `Poll` method.

```cpp
client::CancellableFuture<PollResponse> Poll();
auto poll_future = client.Poll();
auto poll_response = poll_future.GetFuture().get();
auto messages = poll_response.GetResult().GetMessages();
```

You get messages with the layer data and partition metadata. The `Poll` method also commits the offsets, so you can continue polling new messages.
Expand All @@ -49,8 +51,8 @@ You can read messages from a [stream layer](https://docs.here.com/data-api/docs/
6. If the data size is greater than 1 MB, call the `GetData` method with the `Messages` instance.

```cpp
client::CancellableFuture<DataResponse> GetData(
const model::Message& message);
auto data_future = client.GetData(message);
auto data_response = data_future.GetFuture().get();
```

You get data from the requested partition.
6 changes: 3 additions & 3 deletions docs/dev_guide/topics/get-data-from-volatile-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can only get the latest published data from a [volatile layer](https://docs.

```cpp
olp::dataservice::read::VolatileLayerClient layer_client(
olp::client::HRN(kCatalogHRN), layer_id, client_settings);
olp::client::HRN(kCatalogHRN), layer_id, client_settings);
```

3. Create the `DataRequest` object with the partition ID and one of the following fetch options:
Expand All @@ -29,7 +29,7 @@ You can only get the latest published data from a [volatile layer](https://docs.
.WithFetchOption(FetchOptions::OnlineIfNotFound);
```

4. Call the `GetRequest` method with the `DataRequest` parameter.
4. Call the `GetData` method with the `DataRequest` parameter.

```cpp
auto future = layer_client.GetData(request);
Expand All @@ -39,7 +39,7 @@ You can only get the latest published data from a [volatile layer](https://docs.

```cpp
olp::dataservice::read::DataResponse data_response =
future.GetFuture().get();
future.GetFuture().get();
```

The `DataResponse` object holds details of the completed operation and is used to determine operation success and access resultant data:
Expand Down
4 changes: 2 additions & 2 deletions docs/dev_guide/topics/get-data.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Get data

You can use the HERE Data SDK for C++ to get data from catalogs. The process of getting data from catalogs depends on the layer type. Currently, we only support getting data from versioned, volatile, and stream layers. Test.
You can use the HERE Data SDK for C++ to get data from catalogs. The process of getting data from catalogs depends on the layer type. Currently, we only support getting data from versioned, volatile, and stream layers.

- [Get data from a versioned layer](../../dataservice-read-catalog-example.md#get-data-from-a-versioned-layer)
- [Get data from a versioned layer with a cache](../../dataservice-cache-example.md#get-data-from-a-versioned-layer-with-a-cache)
- [Get data from a volatile layer](get-data-from-volatile-layer.md)
- [Get data from a stream layer](../../dataservice-read-from-stream-layer-example.md#get-data-from-a-stream-layer)
- [Get data from a stream layer](get-data-from-stream-layer.md)

4 changes: 2 additions & 2 deletions docs/dev_guide/topics/get-partition-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Partition metadata consists of the following information about the partition:

1. Create the `OlpClientSettings` object.

For instructions, see [Create platform client settings](../docs/create-platform-client-settings.md).
For instructions, see [Create platform client settings](../../create-platform-client-settings.md).

2. Depending on the layer type, create a versioned or volatile layer client with the HERE Resource Name (HRN), layer ID, layer version, and platform client settings from step 1.

Expand Down Expand Up @@ -43,7 +43,7 @@ Partition metadata consists of the following information about the partition:
olp::dataservice::read::FetchOptions::OnlineIfNotFound);
```

4. Call `GetPartitions` method with the `PartitionRequest` parameter.
4. Call `GetPartitions` method with the `PartitionsRequest` parameter.

```cpp
auto future = layer_client.GetPartitions(request);
Expand Down
2 changes: 1 addition & 1 deletion docs/dev_guide/topics/manage-eviction-protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can also remove tile keys from protection.
- If you want to remove tile keys from protection, make sure that the `Protect` method is not in progress, and then call the `Release` method with the list of tile keys that you want to remove from protection.

```cpp
layer_client.Protect(<vector of tile keys>);
layer_client.Release(<vector of tile keys>);
```

Data and keys of the specified tiles are removed from the protected list. The keys are added to the LRU cache. Now, they can be evicted. Expiration value is restored, and keys can expire. The quadtree can be removed from the protected list if all tile keys are no longer protected.
2 changes: 1 addition & 1 deletion docs/dev_guide/topics/publish-data-to-index-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You can index and store metadata and data in a way that is optimized for batch p
.WithLayerId(layer_id);
```

5. Call the `PublishIndex` method with the `DataRequest` parameter.
5. Call the `PublishIndex` method with the `PublishIndexRequest` parameter.

```cpp
auto future = client.PublishIndex(index_request);
Expand Down
8 changes: 4 additions & 4 deletions docs/dev_guide/topics/publish-data-to-versioned-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ If you need to store and access the history of previous data updates, publish da

```cpp
auto complete_batch_response =
versioned_client->CompleteBatch(get_batch_response.GetResult())
versioned_client.CompleteBatch(get_batch_response.GetResult())
.GetFuture()
.get();
```
Expand All @@ -73,11 +73,11 @@ The `PublishDataResponse` object holds details of the completed operation and is
- `GetError()` &ndash; contains error information as a result of an error in the `olp::client::ApiError` object.

```cpp
if (response.IsSuccessful()) {
auto response_result = response.GetResult();
if (complete_batch_response.IsSuccessful()) {
auto response_result = complete_batch_response.GetResult();
// Handle success
} else {
auto api_error = response.GetError();
auto api_error = complete_batch_response.GetError();
// Handle fail
}
```
6 changes: 3 additions & 3 deletions docs/dev_guide/topics/publish-data-to-volatile-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you need to store only the current version of data, use a [volatile layer](ht
auto request = PublishPartitionDataRequest().WithData(buffer).WithLayerId(kLayer).WithPartitionId(kPartition);
```

4. Call the `PublishPartitionData` method with the `DataRequest` parameter.
4. Call the `PublishPartitionData` method with the `PublishPartitionDataRequest` parameter.

```cpp
auto futureResponse = client.PublishPartitionData(request);
Expand All @@ -33,10 +33,10 @@ If you need to store only the current version of data, use a [volatile layer](ht
auto response = futureResponse.GetFuture().get();
```

The `PublishDataResponse` object holds details of the completed operation and is used to determine operation success and access resultant data:
The `PublishPartitionDataResponse` object holds details of the completed operation and is used to determine operation success and access resultant data:

- `IsSuccessful()` &ndash; if the operation is successful, returns `true`. Otherwise, returns `false`.
- `GetResult()`&ndash; if the operation is successful, returns the following resultant data: `olp::dataservice::write::PublishDataResult`
- `GetResult()` &ndash; if the operation is successful, returns the following resultant data: `olp::dataservice::write::PublishDataResult`
- `GetError()` &ndash; contains error information as a result of an error in the `olp::client::ApiError` object.

```cpp
Expand Down
6 changes: 3 additions & 3 deletions docs/dev_guide/topics/use-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ This section describes the most common cases when HERE Data SDK for C++ can be u

- [Authenticate to the HERE platform](../../authenticate.md)
- [Manage eviction protection](manage-eviction-protection.md)
- [Get catalog metadata](../../dataservice-read-catalog-example.md#get-catalog-metadata)
- [Get partition metadata](../../dataservice-read-catalog-example.md#get-partition-metadata)
- [Get catalog metadata](get-catalog-metadata.md)
- [Get partition metadata](get-partition-metadata.md)
- [Get data](get-data.md)
- [Get data from a versioned layer](../../dataservice-read-catalog-example.md#get-data-from-a-versioned-layer)
- [Get data from a versioned layer with a cache](../../dataservice-cache-example.md#get-data-from-a-versioned-layer-with-a-cache)
- [Get data from a volatile layer](get-data-from-volatile-layer.md)
- [Get data from a stream layer](../../dataservice-read-from-stream-layer-example.md#get-data-from-a-stream-layer)
- [Get data from a stream layer](get-data-from-stream-layer.md)
- [Publish data](publish-data.md)
- [Publish data to a versioned layer](publish-data-to-versioned-layer.md)
- [Publish data to a volatile layer](publish-data-to-volatile-layer.md)
Expand Down
Loading