From 83235e74ae2fc1d3625e18077de12b965d53f4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hartman?= Date: Thu, 28 Nov 2024 14:41:58 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Rob Swain --- .../data-connections/pages/data-connection-service.adoc | 2 +- .../pages/how-to-map-loader-data-connection.adoc | 4 ++-- .../pages/how-to-pipeline-service-data-connection.adoc | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/modules/data-connections/pages/data-connection-service.adoc b/docs/modules/data-connections/pages/data-connection-service.adoc index 25eb0122e..deb411190 100644 --- a/docs/modules/data-connections/pages/data-connection-service.adoc +++ b/docs/modules/data-connections/pages/data-connection-service.adoc @@ -39,7 +39,7 @@ You can implement HazelcastInstanceAware in listeners, entry processors, tasks e to the `HazelcastInstance`. In the pipeline API you can use -https://docs.hazelcast.org/docs/{full-version}/javadoc/com/hazelcast/jet/core/ProcessorMetaSupplier.Context.html#dataConnectionService()[ProcessorMetaSupplier.Context#dataConnectionService()] +https://docs.hazelcast.org/docs/{full-version}/javadoc/com/hazelcast/jet/core/ProcessorMetaSupplier.Context.html#dataConnectionService()[ProcessorMetaSupplier.Context#dataConnectionService()]. NOTE: The Data Connection Service is only available on the member side. Calling `getDataConnectionService()` on client will result in `UnsupportedOperationException`. diff --git a/docs/modules/data-connections/pages/how-to-map-loader-data-connection.adoc b/docs/modules/data-connections/pages/how-to-map-loader-data-connection.adoc index 6cddc2f29..e2a93d7bd 100644 --- a/docs/modules/data-connections/pages/how-to-map-loader-data-connection.adoc +++ b/docs/modules/data-connections/pages/how-to-map-loader-data-connection.adoc @@ -1,6 +1,6 @@ = Map Loader using Data Connection -:description: In this tutorial you build a custom map loader that uses a configured data connection to load the data not present in an IMap. +:description: In this tutorial you build a custom map loader that uses a configured data connection to load data not present in an IMap. {description} @@ -106,7 +106,7 @@ Create a blank Java project named pipeline-service-data-connection-example and c ---- -== Step 2. MapLoader +== Step 3. MapLoader The following map loader implements the `com.hazelcast.map.MapLoader` and `com.hazelcast.map.MapLoaderLifecycleSupport` interfaces. diff --git a/docs/modules/data-connections/pages/how-to-pipeline-service-data-connection.adoc b/docs/modules/data-connections/pages/how-to-pipeline-service-data-connection.adoc index b71babcc0..309bf29ba 100644 --- a/docs/modules/data-connections/pages/how-to-pipeline-service-data-connection.adoc +++ b/docs/modules/data-connections/pages/how-to-pipeline-service-data-connection.adoc @@ -1,6 +1,6 @@ = Pipeline Service using Data Connection -:description: In this tutorial you build a service that transforms a stream of items. The service uses a data connection to retrieve a connection to a relational database, uses a table in the database to enrich a stream of numbers with a textual representation of the last digit. +:description: This tutorial builds a service that transforms a stream of items. The service uses a data connection to retrieve a connection to a relational database, uses a table in the database to enrich a stream of numbers with a textual representation of the last digit. {description} @@ -21,7 +21,7 @@ To complete this tutorial, you need the following: |=== -=== Step 1. Create and Populate the Database +== Step 1. Create and Populate the Database This tutorial uses Docker to run the Postgres database. @@ -104,7 +104,7 @@ Create a blank Java project named pipeline-service-data-connection-example and c ---- -== Step 3. the Pipeline and the Job +== Step 3. Create the Pipeline and the Job Create a class `EnrichUsingDataConnection` with `main` method that will be the main job class. The `main` method will do the following steps: