From 6e8340141332367afe2acf4f2330667b31e703f2 Mon Sep 17 00:00:00 2001 From: Bob Roldan Date: Thu, 24 Sep 2020 12:03:15 -0400 Subject: [PATCH] DBZ-2593 Fix table formatting in filter, cbr smt docs --- .../configuration/content-based-routing.adoc | 21 ++++++++++--------- .../ROOT/pages/configuration/filtering.adoc | 20 +++++++++--------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/documentation/modules/ROOT/pages/configuration/content-based-routing.adoc b/documentation/modules/ROOT/pages/configuration/content-based-routing.adoc index d4c71ff0d..20def47fb 100644 --- a/documentation/modules/ROOT/pages/configuration/content-based-routing.adoc +++ b/documentation/modules/ROOT/pages/configuration/content-based-routing.adoc @@ -69,6 +69,7 @@ With https://zookeeper.apache.org[Zookeeper], http://kafka.apache.org/[Kafka], { endif::community[] ifdef::product[] +.Procedure . Download the {prodname} scripting SMT archive (`debezium-scripting-{debezium-version}.tar.gz`) from https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=red.hat.integration&downloadType=distributions. . Extract the contents of the archive into the {prodname} plug-in directories of your Kafka Connect environment. . Obtain a JSR-223 script engine implementation and add its contents to the {prodname} plug-in directories of your Kafka Connect environment. @@ -118,13 +119,13 @@ the SMT can look up and interpret the values of these variables to evaluate cond The following table lists the variables that {prodname} binds into the evaluation context for the content-based routing SMT: .Content-based routing expression variables -[options="header"] -|======================= +[cols="25%a,35%a,40%a",subs="+attributes",options="header"] +|=== |Name |Description |Type -|`key` |A key of the message. |`org.apache.kafka.connect.data.Struct` -|`value` |A value of the message. |`org.apache.kafka.connect.data.Struct` -|`keySchema` |Schema of the message key.|`org.apache.kafka.connect.data.Schema` -|`valueSchema`|Schema of the message value.| `org.apache.kafka.connect.data.Schema` +|`key` |A key of the message. |`org.apache.kafka.connect{zwsp}.data{zwsp}.Struct` +|`value` |A value of the message. |`org.apache.kafka.connect{zwsp}.data{zwsp}.Struct` +|`keySchema` |Schema of the message key.|`org.apache.kafka.connect{zwsp}.data{zwsp}.Schema` +|`valueSchema`|Schema of the message value.| `org.apache.kafka.connect{zwsp}.data{zwsp}.Schema` |`topic`|Name of the target topic.| String |`headers` a|A Java map of message headers. The key field is the header name. @@ -132,10 +133,10 @@ The `headers` variable exposes the following properties: * `value` (of type `Object`) -* `schema` (of type `org.apache.kafka.connect.data.Schema`) +* `schema` (of type `org.apache.kafka{zwsp}.connect{zwsp}.data{zwsp}.Schema`) -| `java.util.Map` -|======================= +| `java.util.Map{zwsp}` +|=== An expression can invoke arbitrary methods on its variables. Expressions should resolve to a Boolean value that determines how the SMT dispositions the message. @@ -206,7 +207,7 @@ If the name of the topic does not match the value in `topic.regex`, the SMT pass |[[content-based-router-language]]<> | -|The language in which the expression is written. Must begin with `jsr223.`, e.g. `jsr223.groovy`, or `jsr223.graal.js`. {prodname} supports bootstrapping through the https://jcp.org/en/jsr/detail?id=223[JSR 223 API ("Scripting for the Java (TM) Platform")] only. +|The language in which the expression is written. Must begin with `jsr223.`, for example, `jsr223.groovy`, or `jsr223.graal.js`. {prodname} supports bootstrapping through the https://jcp.org/en/jsr/detail?id=223[JSR 223 API ("Scripting for the Java (TM) Platform")] only. |[[content-based-router-topic-expression]]<> | diff --git a/documentation/modules/ROOT/pages/configuration/filtering.adoc b/documentation/modules/ROOT/pages/configuration/filtering.adoc index 979fbe0e6..8825ce839 100644 --- a/documentation/modules/ROOT/pages/configuration/filtering.adoc +++ b/documentation/modules/ROOT/pages/configuration/filtering.adoc @@ -113,13 +113,13 @@ By binding variables, {prodname} enables the SMT to look up and interpret their The following table lists the variables that {prodname} binds into the evaluation context for the filter SMT: .Filter expression variables -[options="header"] -|======================= +[cols="25%a,35%a,40%a",subs="+attributes",options="header"] +|=== |Name |Description |Type -|`key` |A key of the message. |`org.apache.kafka.connect.data.Struct` -|`value` |A value of the message. |`org.apache.kafka.connect.data.Struct` -|`keySchema` |Schema of the message key.|`org.apache.kafka.connect.data.Schema` -|`valueSchema`|Schema of the message value.| `org.apache.kafka.connect.data.Schema` +|`key` |A key of the message. |`org.apache.kafka.connect{zwsp}.data{zwsp}.Struct` +|`value` |A value of the message. |`org.apache.kafka.connect.data{zwsp}.Struct` +|`keySchema` |Schema of the message key.|`org.apache.kafka.connect{zwsp}.data{zwsp}.Schema` +|`valueSchema`|Schema of the message value.| `org.apache.kafka.connect{zwsp}.data{zwsp}.Schema` |`topic`|Name of the target topic.| String |`headers` a|A Java map of message headers. The key field is the header name. @@ -127,10 +127,10 @@ The `headers` variable exposes the following properties: * `value` (of type `Object`) -* `schema` (of type `org.apache.kafka.connect.data.Schema`) +* `schema` (of type `org.apache.kafka{zwsp}.connect{zwsp}.data{zwsp}.Schema`) -| `java.util.Map` -|======================= +| `java.util.Map{zwsp}` +|=== An expression can invoke arbitrary methods on its variables. Expressions should resolve to a Boolean value that determines how the SMT dispositions the message. @@ -204,7 +204,7 @@ If the name of the topic does not match the value in `topic.regex`, the SMT pass |[[filter-language]]<> | -|The language in which the expression is written. Must begin with `jsr223.`, e.g. `jsr223.groovy`, or `jsr223.graal.js`. +|The language in which the expression is written. Must begin with `jsr223.`, for example, `jsr223.groovy`, or `jsr223.graal.js`. {prodname} supports bootstrapping through the https://jcp.org/en/jsr/detail?id=223[JSR 223 API ("Scripting for the Java (TM) Platform")] only. |[[filter-condition]]<>