This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit d7981ec106bbcc00a93375168223618689f2ee56 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 19:52:35 2026 +0100 CAMEL-23832: camel-stitch - improve the component and option descriptions This commit rewrites the component description, the texts of 9 options (8 of them shared by the component and the endpoint) and 6 headers of stitch. The new texts say which header overrides which option, how the options combine with a StitchRequestBody or Map body, which hosts the regions select, and which options stitchClient and httpClient replace. The old component description described the Stitch service instead of the component. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-stitch is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/catalog/components/stitch.json | 46 ++++---- .../camel/catalog/docs/stitch-component.adoc | 2 +- .../org/apache/camel/component/stitch/stitch.json | 46 ++++---- .../src/main/docs/stitch-component.adoc | 2 +- .../camel/component/stitch/StitchComponent.java | 6 +- .../component/stitch/StitchConfiguration.java | 70 +++++------ .../camel/component/stitch/StitchConstants.java | 24 ++-- .../camel/component/stitch/StitchEndpoint.java | 3 +- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/StitchComponentBuilderFactory.java | 53 +++++---- .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 26 ++-- .../endpoint/dsl/StitchEndpointBuilderFactory.java | 131 ++++++++++++--------- tasks/component-descriptions.md | 2 +- 14 files changed, 226 insertions(+), 193 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stitch.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stitch.json index cac964018adb..8dde6a586621 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stitch.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stitch.json @@ -3,7 +3,7 @@ "kind": "component", "name": "stitch", "title": "Stitch", - "description": "Stitch is a cloud ETL service that integrates various data sources into a central data warehouse through various integrations.", + "description": "Send batches of records to the Stitch Import API, which loads them into a table of the destination data warehouse.", "deprecated": false, "firstVersion": "3.8.0", "label": "cloud,api,saas,bigdata", @@ -24,38 +24,38 @@ "remote": true }, "componentProperties": { - "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.StitchConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configurations" }, - "keyNames": { "index": 1, "kind": "property", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A collection of comma separated strings representing the Primary Key fields in the source table. Stitch use the [...] + "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.StitchConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The shared configuration of the endpoints. Each endpoint gets a copy, and the options and the table name of the endpoint URI override its values." }, + "keyNames": { "index": 1, "kind": "property", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The Primary Key fields of the source table, as a comma separated list without spaces. Stitch uses them to de-du [...] "lazyStartProducer": { "index": 2, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "region": { "index": 3, "kind": "property", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch account r [...] - "stitchSchema": { "index": 4, "kind": "property", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A schema that describes the record(s)" }, - "connectionProvider": { "index": 5, "kind": "property", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "ConnectionProvider contain configuration for t [...] - "httpClient": { "index": 6, "kind": "property", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Reactor Netty HttpClient, you can injected it if you want to have cu [...] + "region": { "index": 3, "kind": "property", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The region of th [...] + "stitchSchema": { "index": 4, "kind": "property", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The JSON schema that describes the records of the batch; Sti [...] + "connectionProvider": { "index": 5, "kind": "property", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A Reactor Netty ConnectionProvider, for exampl [...] + "httpClient": { "index": 6, "kind": "property", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom Reactor Netty HttpClient that sends the requests. The endpo [...] "autowiredEnabled": { "index": 7, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] - "stitchClient": { "index": 8, "kind": "property", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Set a custom StitchClient that implements org.apache.camel.componen [...] - "token": { "index": 9, "kind": "property", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch access token for the Stitch Import API" } + "stitchClient": { "index": 8, "kind": "property", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom implementation of the org.apache.camel.component.stitch.cl [...] + "token": { "index": 9, "kind": "property", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The access token of the Stitch Import API, sent as a Bearer token. It is required, also when stitc [...] }, "headers": { - "CamelStitchTableName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the destination table the data is being pushed to. Table names must be unique in each destination schema, or loading issues will occur. Note: The number of characters in the table name should be within the destinations allowed limits or data wi [...] - "CamelStitchSchema": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema or Map", "deprecated": false, "autowired": false, "secret": false, "description": "The schema that describes the Stitch message", "constantName": "org.apache.camel.component.stitch.StitchConstants#SCHEMA" }, - "CamelStitchKeyNames": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Collection<String>", "deprecated": false, "autowired": false, "secret": false, "description": "A collection of strings representing the Primary Key fields in the source table. Stitch use these Primary Keys to de-dupe data during loading If not provided, the table will be loaded in an append-only manner.", "constantName": "org.apache.camel [...] - "CamelStitchCode": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "HTTP Status code that is returned from Stitch Import HTTP API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#CODE" }, - "CamelStitchHeaders": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Map<String, Object>", "deprecated": false, "autowired": false, "secret": false, "description": "HTTP headers that are returned from Stitch Import HTTP API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#HEADERS" }, - "CamelStitchStatus": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status message that Stitch returns after sending the data through Stitch Import API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#STATUS" } + "CamelStitchTableName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the destination table that the records are loaded into. It overrides the table name of the endpoint URI.", "constantName": "org.apache.camel.component.stitch.StitchConstants#TABLE_NAME" }, + "CamelStitchSchema": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema or Map", "deprecated": false, "autowired": false, "secret": false, "description": "The JSON schema that describes the records, as a StitchSchema or as a Map of JSON schema keywords. It overrides the stitchSchema option; a value of another type is ignored.", "constantName": "org.ap [...] + "CamelStitchKeyNames": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Collection<String>", "deprecated": false, "autowired": false, "secret": false, "description": "The Primary Key fields of the source table, as a comma separated String without spaces. It overrides the keyNames option.", "constantName": "org.apache.camel.component.stitch.StitchConstants#KEY_NAMES" }, + "CamelStitchCode": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The HTTP status code of the response of the Stitch Import API. Set only when the request succeeds: a status code of 300 or more fails the exchange with a StitchException.", "constantName": "org.apache.camel.component.stitch.StitchConstants#CODE" }, + "CamelStitchHeaders": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Map<String, Object>", "deprecated": false, "autowired": false, "secret": false, "description": "The HTTP headers of the response of the Stitch Import API, by header name. Set only when the request succeeds.", "constantName": "org.apache.camel.component.stitch.StitchConstants#HEADERS" }, + "CamelStitchStatus": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status field of the JSON response of the Stitch Import API, empty when the response has none. Set only when the request succeeds.", "constantName": "org.apache.camel.component.stitch.StitchConstants#STATUS" } }, "bodyTypes": { "producerIn": { "carriers": [ "pojo", "map", "list" ], "description": "A StitchRequestBody, a StitchMessage, a Map of the Stitch batch JSON (table_name, schema, messages, key_names as a list or a comma separated String), or a List of StitchMessage, Map of a message, StitchRequestBody, Message or Exchange. Text, bytes, a stream or no body fails. The tableName, keyNames and schema options or headers set the rest of the batch" }, "producerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", "description": "The message of the response of Stitch, empty when it has none; the HTTP status code, the status and the response headers are in the CamelStitchCode, CamelStitchStatus and CamelStitchHeaders headers" } }, "properties": { - "tableName": { "index": 0, "kind": "path", "displayName": "Table Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The name of the destination table the data is being pushed to. Table names must be unique in each destination schema, or [...] - "keyNames": { "index": 1, "kind": "parameter", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A collection of comma separated strings representing the Primary Key fields in the source table. Stitch use th [...] - "region": { "index": 2, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch account [...] - "stitchSchema": { "index": 3, "kind": "parameter", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A schema that describes the record(s)" }, - "connectionProvider": { "index": 4, "kind": "parameter", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "ConnectionProvider contain configuration for [...] - "httpClient": { "index": 5, "kind": "parameter", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Reactor Netty HttpClient, you can injected it if you want to have c [...] + "tableName": { "index": 0, "kind": "path", "displayName": "Table Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The name of the destination table that the records are loaded into. The CamelStitchTableName header overrides it, and it [...] + "keyNames": { "index": 1, "kind": "parameter", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The Primary Key fields of the source table, as a comma separated list without spaces. Stitch uses them to de-d [...] + "region": { "index": 2, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The region of t [...] + "stitchSchema": { "index": 3, "kind": "parameter", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The JSON schema that describes the records of the batch; St [...] + "connectionProvider": { "index": 4, "kind": "parameter", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A Reactor Netty ConnectionProvider, for examp [...] + "httpClient": { "index": 5, "kind": "parameter", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom Reactor Netty HttpClient that sends the requests. The endp [...] "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "stitchClient": { "index": 7, "kind": "parameter", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Set a custom StitchClient that implements org.apache.camel.compone [...] - "token": { "index": 8, "kind": "parameter", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch access token for the Stitch Import API" } + "stitchClient": { "index": 7, "kind": "parameter", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom implementation of the org.apache.camel.component.stitch.c [...] + "token": { "index": 8, "kind": "parameter", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The access token of the Stitch Import API, sent as a Bearer token. It is required, also when stit [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stitch-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stitch-component.adoc index 5459f7e10d44..5356703f640f 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stitch-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stitch-component.adoc @@ -2,7 +2,7 @@ :doctitle: Stitch :shortname: stitch :artifactid: camel-stitch -:description: Stitch is a cloud ETL service that integrates various data sources into a central data warehouse through various integrations. +:description: Send batches of records to the Stitch Import API, which loads them into a table of the destination data warehouse. :since: 3.8 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-stitch/src/generated/resources/META-INF/org/apache/camel/component/stitch/stitch.json b/components/camel-stitch/src/generated/resources/META-INF/org/apache/camel/component/stitch/stitch.json index cac964018adb..8dde6a586621 100644 --- a/components/camel-stitch/src/generated/resources/META-INF/org/apache/camel/component/stitch/stitch.json +++ b/components/camel-stitch/src/generated/resources/META-INF/org/apache/camel/component/stitch/stitch.json @@ -3,7 +3,7 @@ "kind": "component", "name": "stitch", "title": "Stitch", - "description": "Stitch is a cloud ETL service that integrates various data sources into a central data warehouse through various integrations.", + "description": "Send batches of records to the Stitch Import API, which loads them into a table of the destination data warehouse.", "deprecated": false, "firstVersion": "3.8.0", "label": "cloud,api,saas,bigdata", @@ -24,38 +24,38 @@ "remote": true }, "componentProperties": { - "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.StitchConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The component configurations" }, - "keyNames": { "index": 1, "kind": "property", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A collection of comma separated strings representing the Primary Key fields in the source table. Stitch use the [...] + "configuration": { "index": 0, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.StitchConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The shared configuration of the endpoints. Each endpoint gets a copy, and the options and the table name of the endpoint URI override its values." }, + "keyNames": { "index": 1, "kind": "property", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The Primary Key fields of the source table, as a comma separated list without spaces. Stitch uses them to de-du [...] "lazyStartProducer": { "index": 2, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "region": { "index": 3, "kind": "property", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch account r [...] - "stitchSchema": { "index": 4, "kind": "property", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A schema that describes the record(s)" }, - "connectionProvider": { "index": 5, "kind": "property", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "ConnectionProvider contain configuration for t [...] - "httpClient": { "index": 6, "kind": "property", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Reactor Netty HttpClient, you can injected it if you want to have cu [...] + "region": { "index": 3, "kind": "property", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The region of th [...] + "stitchSchema": { "index": 4, "kind": "property", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The JSON schema that describes the records of the batch; Sti [...] + "connectionProvider": { "index": 5, "kind": "property", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A Reactor Netty ConnectionProvider, for exampl [...] + "httpClient": { "index": 6, "kind": "property", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom Reactor Netty HttpClient that sends the requests. The endpo [...] "autowiredEnabled": { "index": 7, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...] - "stitchClient": { "index": 8, "kind": "property", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Set a custom StitchClient that implements org.apache.camel.componen [...] - "token": { "index": 9, "kind": "property", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch access token for the Stitch Import API" } + "stitchClient": { "index": 8, "kind": "property", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom implementation of the org.apache.camel.component.stitch.cl [...] + "token": { "index": 9, "kind": "property", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The access token of the Stitch Import API, sent as a Bearer token. It is required, also when stitc [...] }, "headers": { - "CamelStitchTableName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the destination table the data is being pushed to. Table names must be unique in each destination schema, or loading issues will occur. Note: The number of characters in the table name should be within the destinations allowed limits or data wi [...] - "CamelStitchSchema": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema or Map", "deprecated": false, "autowired": false, "secret": false, "description": "The schema that describes the Stitch message", "constantName": "org.apache.camel.component.stitch.StitchConstants#SCHEMA" }, - "CamelStitchKeyNames": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Collection<String>", "deprecated": false, "autowired": false, "secret": false, "description": "A collection of strings representing the Primary Key fields in the source table. Stitch use these Primary Keys to de-dupe data during loading If not provided, the table will be loaded in an append-only manner.", "constantName": "org.apache.camel [...] - "CamelStitchCode": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "HTTP Status code that is returned from Stitch Import HTTP API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#CODE" }, - "CamelStitchHeaders": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Map<String, Object>", "deprecated": false, "autowired": false, "secret": false, "description": "HTTP headers that are returned from Stitch Import HTTP API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#HEADERS" }, - "CamelStitchStatus": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status message that Stitch returns after sending the data through Stitch Import API.", "constantName": "org.apache.camel.component.stitch.StitchConstants#STATUS" } + "CamelStitchTableName": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The name of the destination table that the records are loaded into. It overrides the table name of the endpoint URI.", "constantName": "org.apache.camel.component.stitch.StitchConstants#TABLE_NAME" }, + "CamelStitchSchema": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema or Map", "deprecated": false, "autowired": false, "secret": false, "description": "The JSON schema that describes the records, as a StitchSchema or as a Map of JSON schema keywords. It overrides the stitchSchema option; a value of another type is ignored.", "constantName": "org.ap [...] + "CamelStitchKeyNames": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Collection<String>", "deprecated": false, "autowired": false, "secret": false, "description": "The Primary Key fields of the source table, as a comma separated String without spaces. It overrides the keyNames option.", "constantName": "org.apache.camel.component.stitch.StitchConstants#KEY_NAMES" }, + "CamelStitchCode": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "autowired": false, "secret": false, "description": "The HTTP status code of the response of the Stitch Import API. Set only when the request succeeds: a status code of 300 or more fails the exchange with a StitchException.", "constantName": "org.apache.camel.component.stitch.StitchConstants#CODE" }, + "CamelStitchHeaders": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Map<String, Object>", "deprecated": false, "autowired": false, "secret": false, "description": "The HTTP headers of the response of the Stitch Import API, by header name. Set only when the request succeeds.", "constantName": "org.apache.camel.component.stitch.StitchConstants#HEADERS" }, + "CamelStitchStatus": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The status field of the JSON response of the Stitch Import API, empty when the response has none. Set only when the request succeeds.", "constantName": "org.apache.camel.component.stitch.StitchConstants#STATUS" } }, "bodyTypes": { "producerIn": { "carriers": [ "pojo", "map", "list" ], "description": "A StitchRequestBody, a StitchMessage, a Map of the Stitch batch JSON (table_name, schema, messages, key_names as a list or a comma separated String), or a List of StitchMessage, Map of a message, StitchRequestBody, Message or Exchange. Text, bytes, a stream or no body fails. The tableName, keyNames and schema options or headers set the rest of the batch" }, "producerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", "description": "The message of the response of Stitch, empty when it has none; the HTTP status code, the status and the response headers are in the CamelStitchCode, CamelStitchStatus and CamelStitchHeaders headers" } }, "properties": { - "tableName": { "index": 0, "kind": "path", "displayName": "Table Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The name of the destination table the data is being pushed to. Table names must be unique in each destination schema, or [...] - "keyNames": { "index": 1, "kind": "parameter", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A collection of comma separated strings representing the Primary Key fields in the source table. Stitch use th [...] - "region": { "index": 2, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch account [...] - "stitchSchema": { "index": 3, "kind": "parameter", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A schema that describes the record(s)" }, - "connectionProvider": { "index": 4, "kind": "parameter", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "ConnectionProvider contain configuration for [...] - "httpClient": { "index": 5, "kind": "parameter", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Reactor Netty HttpClient, you can injected it if you want to have c [...] + "tableName": { "index": 0, "kind": "path", "displayName": "Table Name", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The name of the destination table that the records are loaded into. The CamelStitchTableName header overrides it, and it [...] + "keyNames": { "index": 1, "kind": "parameter", "displayName": "Key Names", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The Primary Key fields of the source table, as a comma separated list without spaces. Stitch uses them to de-d [...] + "region": { "index": 2, "kind": "parameter", "displayName": "Region", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.stitch.client.StitchRegion", "enum": [ "NORTH_AMERICA", "EUROPE" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "EUROPE", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The region of t [...] + "stitchSchema": { "index": 3, "kind": "parameter", "displayName": "Stitch Schema", "group": "producer", "label": "producer", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.models.StitchSchema", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The JSON schema that describes the records of the batch; St [...] + "connectionProvider": { "index": 4, "kind": "parameter", "displayName": "Connection Provider", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.resources.ConnectionProvider", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A Reactor Netty ConnectionProvider, for examp [...] + "httpClient": { "index": 5, "kind": "parameter", "displayName": "Http Client", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "object", "javaType": "reactor.netty.http.client.HttpClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom Reactor Netty HttpClient that sends the requests. The endp [...] "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "stitchClient": { "index": 7, "kind": "parameter", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Set a custom StitchClient that implements org.apache.camel.compone [...] - "token": { "index": 8, "kind": "parameter", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "Stitch access token for the Stitch Import API" } + "stitchClient": { "index": 7, "kind": "parameter", "displayName": "Stitch Client", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.stitch.client.StitchClient", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "A custom implementation of the org.apache.camel.component.stitch.c [...] + "token": { "index": 8, "kind": "parameter", "displayName": "Token", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.stitch.StitchConfiguration", "configurationField": "configuration", "description": "The access token of the Stitch Import API, sent as a Bearer token. It is required, also when stit [...] } } diff --git a/components/camel-stitch/src/main/docs/stitch-component.adoc b/components/camel-stitch/src/main/docs/stitch-component.adoc index 5459f7e10d44..5356703f640f 100644 --- a/components/camel-stitch/src/main/docs/stitch-component.adoc +++ b/components/camel-stitch/src/main/docs/stitch-component.adoc @@ -2,7 +2,7 @@ :doctitle: Stitch :shortname: stitch :artifactid: camel-stitch -:description: Stitch is a cloud ETL service that integrates various data sources into a central data warehouse through various integrations. +:description: Send batches of records to the Stitch Import API, which loads them into a table of the destination data warehouse. :since: 3.8 :supportlevel: Stable :tabs-sync-option: diff --git a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchComponent.java b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchComponent.java index 4bbbc4f95ca3..ca53b592d1bb 100644 --- a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchComponent.java +++ b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchComponent.java @@ -30,7 +30,8 @@ import org.apache.camel.util.ObjectHelper; @Component("stitch") public class StitchComponent extends DefaultComponent { - @Metadata + @Metadata(description = "The shared configuration of the endpoints. Each endpoint gets a copy, and the options and" + + " the table name of the endpoint URI override its values.") private StitchConfiguration configuration = new StitchConfiguration(); public StitchComponent() { @@ -52,9 +53,6 @@ public class StitchComponent extends DefaultComponent { return endpoint; } - /** - * The component configurations - */ public StitchConfiguration getConfiguration() { return configuration; } diff --git a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConfiguration.java b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConfiguration.java index 1904ce4391f7..7b8b4cf84563 100644 --- a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConfiguration.java +++ b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConfiguration.java @@ -30,35 +30,52 @@ import reactor.netty.resources.ConnectionProvider; @UriParams public class StitchConfiguration implements Cloneable { - @UriPath + @UriPath(description = "The name of the destination table that the records are loaded into. The CamelStitchTableName" + + " header overrides it, and it overrides the table_name of a StitchRequestBody or Map body." + + " Table names must be unique in each destination schema, and Stitch rejects the data when the" + + " name is longer than the destination allows.") private String tableName; - @UriParam(label = "security", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The access token of the Stitch Import API, sent as a Bearer token. It is required, also when" + + " stitchClient is set.") @Metadata(required = true) private String token; - @UriParam(label = "producer", defaultValue = "EUROPE") + @UriParam(label = "producer", defaultValue = "EUROPE", + description = "The region of the Stitch account, which selects the host of the Import API: EUROPE" + + " (api.eu-central-1.stitchdata.com) or NORTH_AMERICA (api.stitchdata.com). Not used when" + + " stitchClient is set.") private StitchRegion region = StitchRegion.EUROPE; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "The JSON schema that describes the records of the batch; Stitch rejects records that do not" + + " conform to it. The CamelStitchSchema header overrides it, and it overrides the schema of a" + + " StitchRequestBody or Map body.") @Metadata(autowired = true) private StitchSchema stitchSchema; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "The Primary Key fields of the source table, as a comma separated list without spaces. Stitch" + + " uses them to de-duplicate the records when it loads them, and loads the table append-only" + + " when there are none. The CamelStitchKeyNames header overrides it, and the names are added" + + " to the key_names of a StitchRequestBody or Map body.") private String keyNames; - @UriParam(label = "producer,advanced") + @UriParam(label = "producer,advanced", + description = "A custom Reactor Netty HttpClient that sends the requests. The endpoint still sets the host" + + " of the region and the Authorization and Content-Type headers on it, and does not use" + + " connectionProvider. Not used when stitchClient is set.") @Metadata(autowired = true) private HttpClient httpClient; - @UriParam(label = "producer,advanced") + @UriParam(label = "producer,advanced", + description = "A Reactor Netty ConnectionProvider, for example a pool with a maximum number of connections," + + " that the endpoint creates its HttpClient with. Not used when httpClient or stitchClient is" + + " set.") @Metadata(autowired = true) private ConnectionProvider connectionProvider; - @UriParam(label = "advanced") + @UriParam(label = "advanced", + description = "A custom implementation of the org.apache.camel.component.stitch.client.StitchClient" + + " interface that sends the batches. When set, the region, httpClient and connectionProvider" + + " options are not used, and the endpoint does not close the client when it stops.") @Metadata(autowired = true) private StitchClient stitchClient; - /** - * The name of the destination table the data is being pushed to. Table names must be unique in each destination - * schema, or loading issues will occur. - * - * Note: The number of characters in the table name should be within the destination's allowed limits or data will - * rejected. - */ public String getTableName() { return tableName; } @@ -67,9 +84,6 @@ public class StitchConfiguration implements Cloneable { this.tableName = tableName; } - /** - * Stitch access token for the Stitch Import API - */ public String getToken() { return token; } @@ -78,9 +92,6 @@ public class StitchConfiguration implements Cloneable { this.token = token; } - /** - * Stitch account region, e.g: europe - */ public StitchRegion getRegion() { return region; } @@ -89,9 +100,6 @@ public class StitchConfiguration implements Cloneable { this.region = region; } - /** - * A schema that describes the record(s) - */ public StitchSchema getStitchSchema() { return stitchSchema; } @@ -100,10 +108,6 @@ public class StitchConfiguration implements Cloneable { this.stitchSchema = stitchSchema; } - /** - * A collection of comma separated strings representing the Primary Key fields in the source table. Stitch use these - * Primary Keys to de-dupe data during loading If not provided, the table will be loaded in an append-only manner. - */ public String getKeyNames() { return keyNames; } @@ -112,9 +116,6 @@ public class StitchConfiguration implements Cloneable { this.keyNames = keyNames; } - /** - * Reactor Netty HttpClient, you can injected it if you want to have custom HttpClient - */ public HttpClient getHttpClient() { return httpClient; } @@ -123,10 +124,6 @@ public class StitchConfiguration implements Cloneable { this.httpClient = httpClient; } - /** - * ConnectionProvider contain configuration for the HttpClient like Maximum connection limit .. etc, you can inject - * this ConnectionProvider and the StitchClient will initialize HttpClient with this ConnectionProvider - */ public ConnectionProvider getConnectionProvider() { return connectionProvider; } @@ -135,9 +132,6 @@ public class StitchConfiguration implements Cloneable { this.connectionProvider = connectionProvider; } - /** - * Set a custom StitchClient that implements org.apache.camel.component.stitch.client.StitchClient interface - */ public StitchClient getStitchClient() { return stitchClient; } diff --git a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConstants.java b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConstants.java index f0ad47b12103..178160e51c3e 100644 --- a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConstants.java +++ b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchConstants.java @@ -21,29 +21,33 @@ import org.apache.camel.spi.Metadata; public final class StitchConstants { private static final String HEADER_PREFIX = "CamelStitch"; // headers evaluated by producer - @Metadata(label = "producer", description = "The name of the destination table the data is being pushed to. " + - "Table names must be unique in each destination schema, or loading issues will occur. " - + - "Note: The number of characters in the table name should be within the destinations allowed limits or data will rejected.", + @Metadata(label = "producer", description = "The name of the destination table that the records are loaded into. It" + + " overrides the table name of the endpoint URI.", javaType = "String") public static final String TABLE_NAME = HEADER_PREFIX + "TableName"; - @Metadata(label = "producer", description = "The schema that describes the Stitch message", + @Metadata(label = "producer", + description = "The JSON schema that describes the records, as a StitchSchema or as a Map of JSON schema" + + " keywords. It overrides the stitchSchema option; a value of another type is ignored.", javaType = "org.apache.camel.component.stitch.client.models.StitchSchema or Map") public static final String SCHEMA = HEADER_PREFIX + "Schema"; @Metadata(label = "producer", - description = "A collection of strings representing the Primary Key fields in the source table. " + - "Stitch use these Primary Keys to de-dupe data during loading If not provided, the table will be loaded in an append-only manner.", + description = "The Primary Key fields of the source table, as a comma separated String without spaces. It" + + " overrides the keyNames option.", javaType = "Collection<String>") public static final String KEY_NAMES = HEADER_PREFIX + "KeyNames"; // headers set by producer - @Metadata(label = "producer", description = "HTTP Status code that is returned from Stitch Import HTTP API.", + @Metadata(label = "producer", + description = "The HTTP status code of the response of the Stitch Import API. Set only when the request" + + " succeeds: a status code of 300 or more fails the exchange with a StitchException.", javaType = "Integer") public static final String CODE = HEADER_PREFIX + "Code"; - @Metadata(label = "producer", description = "HTTP headers that are returned from Stitch Import HTTP API.", + @Metadata(label = "producer", description = "The HTTP headers of the response of the Stitch Import API, by header name." + + " Set only when the request succeeds.", javaType = "Map<String, Object>") public static final String HEADERS = HEADER_PREFIX + "Headers"; @Metadata(label = "producer", - description = "The status message that Stitch returns after sending the data through Stitch Import API.", + description = "The status field of the JSON response of the Stitch Import API, empty when the response has" + + " none. Set only when the request succeeds.", javaType = "String") public static final String STATUS = HEADER_PREFIX + "Status"; diff --git a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchEndpoint.java b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchEndpoint.java index fc1094cb593d..914cce85664a 100644 --- a/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchEndpoint.java +++ b/components/camel-stitch/src/main/java/org/apache/camel/component/stitch/StitchEndpoint.java @@ -32,8 +32,7 @@ import org.apache.camel.support.DefaultEndpoint; import org.apache.camel.util.ObjectHelper; /** - * Stitch is a cloud ETL service that integrates various data sources into a central data warehouse through various - * integrations. + * Send batches of records to the Stitch Import API, which loads them into a table of the destination data warehouse. */ @UriEndpoint(firstVersion = "3.8.0", scheme = "stitch", title = "Stitch", syntax = "stitch:tableName", producerOnly = true, category = { diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 8e425572b7e8..8241a4c8d1f9 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -5130,8 +5130,8 @@ public interface ComponentsBuilderFactory { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StitchComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StitchComponentBuilderFactory.java index 9c2edb6d7442..f4786689dc6f 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StitchComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StitchComponentBuilderFactory.java @@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.stitch.StitchComponent; /** - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +34,8 @@ public interface StitchComponentBuilderFactory { /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -53,7 +53,9 @@ public interface StitchComponentBuilderFactory { interface StitchComponentBuilder extends ComponentBuilder<StitchComponent> { /** - * The component configurations. + * The shared configuration of the endpoints. Each endpoint gets a copy, + * and the options and the table name of the endpoint URI override its + * values. * * The option is a: * <code>org.apache.camel.component.stitch.StitchConfiguration</code> type. @@ -69,10 +71,11 @@ public interface StitchComponentBuilderFactory { } /** - * A collection of comma separated strings representing the Primary Key - * fields in the source table. Stitch use these Primary Keys to de-dupe - * data during loading If not provided, the table will be loaded in an - * append-only manner. + * The Primary Key fields of the source table, as a comma separated list + * without spaces. Stitch uses them to de-duplicate the records when it + * loads them, and loads the table append-only when there are none. The + * CamelStitchKeyNames header overrides it, and the names are added to + * the key_names of a StitchRequestBody or Map body. * * The option is a: <code>java.lang.String</code> type. * @@ -113,7 +116,9 @@ public interface StitchComponentBuilderFactory { /** - * Stitch account region, e.g: europe. + * The region of the Stitch account, which selects the host of the + * Import API: EUROPE (api.eu-central-1.stitchdata.com) or NORTH_AMERICA + * (api.stitchdata.com). Not used when stitchClient is set. * * The option is a: * <code>org.apache.camel.component.stitch.client.StitchRegion</code> type. @@ -130,7 +135,10 @@ public interface StitchComponentBuilderFactory { } /** - * A schema that describes the record(s). + * The JSON schema that describes the records of the batch; Stitch + * rejects records that do not conform to it. The CamelStitchSchema + * header overrides it, and it overrides the schema of a + * StitchRequestBody or Map body. * * The option is a: * <code>org.apache.camel.component.stitch.client.models.StitchSchema</code> type. @@ -146,10 +154,9 @@ public interface StitchComponentBuilderFactory { } /** - * ConnectionProvider contain configuration for the HttpClient like - * Maximum connection limit .. etc, you can inject this - * ConnectionProvider and the StitchClient will initialize HttpClient - * with this ConnectionProvider. + * A Reactor Netty ConnectionProvider, for example a pool with a maximum + * number of connections, that the endpoint creates its HttpClient with. + * Not used when httpClient or stitchClient is set. * * The option is a: * <code>reactor.netty.resources.ConnectionProvider</code> @@ -166,8 +173,10 @@ public interface StitchComponentBuilderFactory { } /** - * Reactor Netty HttpClient, you can injected it if you want to have - * custom HttpClient. + * A custom Reactor Netty HttpClient that sends the requests. The + * endpoint still sets the host of the region and the Authorization and + * Content-Type headers on it, and does not use connectionProvider. Not + * used when stitchClient is set. * * The option is a: * <code>reactor.netty.http.client.HttpClient</code> type. @@ -205,8 +214,11 @@ public interface StitchComponentBuilderFactory { } /** - * Set a custom StitchClient that implements - * org.apache.camel.component.stitch.client.StitchClient interface. + * A custom implementation of the + * org.apache.camel.component.stitch.client.StitchClient interface that + * sends the batches. When set, the region, httpClient and + * connectionProvider options are not used, and the endpoint does not + * close the client when it stops. * * The option is a: * <code>org.apache.camel.component.stitch.client.StitchClient</code> type. @@ -222,7 +234,8 @@ public interface StitchComponentBuilderFactory { } /** - * Stitch access token for the Stitch Import API. + * The access token of the Stitch Import API, sent as a Bearer token. It + * is required, also when stitchClient is set. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index 9126a75b8f27..9e22135e3cee 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -4083,8 +4083,8 @@ public class EndpointHeaderBuilders { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 65c05e0d59af..596eec3709b2 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -17694,8 +17694,8 @@ public class StaticEndpointBuilders { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -17704,10 +17704,11 @@ public class StaticEndpointBuilders { * Syntax: <code>stitch:tableName</code> * * Path parameter: tableName - * The name of the destination table the data is being pushed to. Table - * names must be unique in each destination schema, or loading issues will - * occur. Note: The number of characters in the table name should be within - * the destination's allowed limits or data will rejected. + * The name of the destination table that the records are loaded into. The + * CamelStitchTableName header overrides it, and it overrides the table_name + * of a StitchRequestBody or Map body. Table names must be unique in each + * destination schema, and Stitch rejects the data when the name is longer + * than the destination allows. * * @param path tableName * @return the dsl builder @@ -17717,8 +17718,8 @@ public class StaticEndpointBuilders { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -17727,10 +17728,11 @@ public class StaticEndpointBuilders { * Syntax: <code>stitch:tableName</code> * * Path parameter: tableName - * The name of the destination table the data is being pushed to. Table - * names must be unique in each destination schema, or loading issues will - * occur. Note: The number of characters in the table name should be within - * the destination's allowed limits or data will rejected. + * The name of the destination table that the records are loaded into. The + * CamelStitchTableName header overrides it, and it overrides the table_name + * of a StitchRequestBody or Map body. Table names must be unique in each + * destination schema, and Stitch rejects the data when the name is longer + * than the destination allows. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StitchEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StitchEndpointBuilderFactory.java index f268c8f638c9..7ff6d4481730 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StitchEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StitchEndpointBuilderFactory.java @@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Stitch is a cloud ETL service that integrates various data sources into a - * central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them into a + * table of the destination data warehouse. * * Generated by camel build tools - do NOT edit this file! */ @@ -46,10 +46,11 @@ public interface StitchEndpointBuilderFactory { } /** - * A collection of comma separated strings representing the Primary Key - * fields in the source table. Stitch use these Primary Keys to de-dupe - * data during loading If not provided, the table will be loaded in an - * append-only manner. + * The Primary Key fields of the source table, as a comma separated list + * without spaces. Stitch uses them to de-duplicate the records when it + * loads them, and loads the table append-only when there are none. The + * CamelStitchKeyNames header overrides it, and the names are added to + * the key_names of a StitchRequestBody or Map body. * * The option is a: <code>java.lang.String</code> type. * @@ -63,7 +64,9 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Stitch account region, e.g: europe. + * The region of the Stitch account, which selects the host of the + * Import API: EUROPE (api.eu-central-1.stitchdata.com) or NORTH_AMERICA + * (api.stitchdata.com). Not used when stitchClient is set. * * The option is a: * <code>org.apache.camel.component.stitch.client.StitchRegion</code> @@ -80,7 +83,9 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Stitch account region, e.g: europe. + * The region of the Stitch account, which selects the host of the + * Import API: EUROPE (api.eu-central-1.stitchdata.com) or NORTH_AMERICA + * (api.stitchdata.com). Not used when stitchClient is set. * * The option will be converted to a * <code>org.apache.camel.component.stitch.client.StitchRegion</code> @@ -97,7 +102,10 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * A schema that describes the record(s). + * The JSON schema that describes the records of the batch; Stitch + * rejects records that do not conform to it. The CamelStitchSchema + * header overrides it, and it overrides the schema of a + * StitchRequestBody or Map body. * * The option is a: * <code>org.apache.camel.component.stitch.client.models.StitchSchema</code> type. @@ -112,7 +120,10 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * A schema that describes the record(s). + * The JSON schema that describes the records of the batch; Stitch + * rejects records that do not conform to it. The CamelStitchSchema + * header overrides it, and it overrides the schema of a + * StitchRequestBody or Map body. * * The option will be converted to a * <code>org.apache.camel.component.stitch.client.models.StitchSchema</code> type. @@ -127,7 +138,8 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Stitch access token for the Stitch Import API. + * The access token of the Stitch Import API, sent as a Bearer token. It + * is required, also when stitchClient is set. * * The option is a: <code>java.lang.String</code> type. * @@ -154,10 +166,9 @@ public interface StitchEndpointBuilderFactory { } /** - * ConnectionProvider contain configuration for the HttpClient like - * Maximum connection limit .. etc, you can inject this - * ConnectionProvider and the StitchClient will initialize HttpClient - * with this ConnectionProvider. + * A Reactor Netty ConnectionProvider, for example a pool with a maximum + * number of connections, that the endpoint creates its HttpClient with. + * Not used when httpClient or stitchClient is set. * * The option is a: * <code>reactor.netty.resources.ConnectionProvider</code> type. @@ -172,10 +183,9 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * ConnectionProvider contain configuration for the HttpClient like - * Maximum connection limit .. etc, you can inject this - * ConnectionProvider and the StitchClient will initialize HttpClient - * with this ConnectionProvider. + * A Reactor Netty ConnectionProvider, for example a pool with a maximum + * number of connections, that the endpoint creates its HttpClient with. + * Not used when httpClient or stitchClient is set. * * The option will be converted to a * <code>reactor.netty.resources.ConnectionProvider</code> type. @@ -190,8 +200,10 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Reactor Netty HttpClient, you can injected it if you want to have - * custom HttpClient. + * A custom Reactor Netty HttpClient that sends the requests. The + * endpoint still sets the host of the region and the Authorization and + * Content-Type headers on it, and does not use connectionProvider. Not + * used when stitchClient is set. * * The option is a: <code>reactor.netty.http.client.HttpClient</code> * type. @@ -206,8 +218,10 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Reactor Netty HttpClient, you can injected it if you want to have - * custom HttpClient. + * A custom Reactor Netty HttpClient that sends the requests. The + * endpoint still sets the host of the region and the Authorization and + * Content-Type headers on it, and does not use connectionProvider. Not + * used when stitchClient is set. * * The option will be converted to a * <code>reactor.netty.http.client.HttpClient</code> type. @@ -268,8 +282,11 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Set a custom StitchClient that implements - * org.apache.camel.component.stitch.client.StitchClient interface. + * A custom implementation of the + * org.apache.camel.component.stitch.client.StitchClient interface that + * sends the batches. When set, the region, httpClient and + * connectionProvider options are not used, and the endpoint does not + * close the client when it stops. * * The option is a: * <code>org.apache.camel.component.stitch.client.StitchClient</code> @@ -285,8 +302,11 @@ public interface StitchEndpointBuilderFactory { return this; } /** - * Set a custom StitchClient that implements - * org.apache.camel.component.stitch.client.StitchClient interface. + * A custom implementation of the + * org.apache.camel.component.stitch.client.StitchClient interface that + * sends the batches. When set, the region, httpClient and + * connectionProvider options are not used, and the endpoint does not + * close the client when it stops. * * The option will be converted to a * <code>org.apache.camel.component.stitch.client.StitchClient</code> @@ -306,8 +326,8 @@ public interface StitchEndpointBuilderFactory { public interface StitchBuilders { /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources - * into a central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them + * into a table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -320,8 +340,8 @@ public interface StitchEndpointBuilderFactory { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources - * into a central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them + * into a table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -330,10 +350,11 @@ public interface StitchEndpointBuilderFactory { * Syntax: <code>stitch:tableName</code> * * Path parameter: tableName - * The name of the destination table the data is being pushed to. Table - * names must be unique in each destination schema, or loading issues - * will occur. Note: The number of characters in the table name should - * be within the destination's allowed limits or data will rejected. + * The name of the destination table that the records are loaded into. + * The CamelStitchTableName header overrides it, and it overrides the + * table_name of a StitchRequestBody or Map body. Table names must be + * unique in each destination schema, and Stitch rejects the data when + * the name is longer than the destination allows. * * @param path tableName * @return the dsl builder @@ -343,8 +364,8 @@ public interface StitchEndpointBuilderFactory { } /** * Stitch (camel-stitch) - * Stitch is a cloud ETL service that integrates various data sources - * into a central data warehouse through various integrations. + * Send batches of records to the Stitch Import API, which loads them + * into a table of the destination data warehouse. * * Category: cloud,api,saas,bigdata * Since: 3.8 @@ -353,10 +374,11 @@ public interface StitchEndpointBuilderFactory { * Syntax: <code>stitch:tableName</code> * * Path parameter: tableName - * The name of the destination table the data is being pushed to. Table - * names must be unique in each destination schema, or loading issues - * will occur. Note: The number of characters in the table name should - * be within the destination's allowed limits or data will rejected. + * The name of the destination table that the records are loaded into. + * The CamelStitchTableName header overrides it, and it overrides the + * table_name of a StitchRequestBody or Map body. Table names must be + * unique in each destination schema, and Stitch rejects the data when + * the name is longer than the destination allows. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -379,10 +401,8 @@ public interface StitchEndpointBuilderFactory { public static final StitchHeaderNameBuilder INSTANCE = new StitchHeaderNameBuilder(); /** - * The name of the destination table the data is being pushed to. Table - * names must be unique in each destination schema, or loading issues - * will occur. Note: The number of characters in the table name should - * be within the destinations allowed limits or data will rejected. + * The name of the destination table that the records are loaded into. + * It overrides the table name of the endpoint URI. * * The option is a: {@code String} type. * @@ -394,7 +414,9 @@ public interface StitchEndpointBuilderFactory { return "CamelStitchTableName"; } /** - * The schema that describes the Stitch message. + * The JSON schema that describes the records, as a StitchSchema or as a + * Map of JSON schema keywords. It overrides the stitchSchema option; a + * value of another type is ignored. * * The option is a: {@code * org.apache.camel.component.stitch.client.models.StitchSchema or Map} @@ -408,10 +430,8 @@ public interface StitchEndpointBuilderFactory { return "CamelStitchSchema"; } /** - * A collection of strings representing the Primary Key fields in the - * source table. Stitch use these Primary Keys to de-dupe data during - * loading If not provided, the table will be loaded in an append-only - * manner. + * The Primary Key fields of the source table, as a comma separated + * String without spaces. It overrides the keyNames option. * * The option is a: {@code Collection<String>} type. * @@ -423,7 +443,9 @@ public interface StitchEndpointBuilderFactory { return "CamelStitchKeyNames"; } /** - * HTTP Status code that is returned from Stitch Import HTTP API. + * The HTTP status code of the response of the Stitch Import API. Set + * only when the request succeeds: a status code of 300 or more fails + * the exchange with a StitchException. * * The option is a: {@code Integer} type. * @@ -435,7 +457,8 @@ public interface StitchEndpointBuilderFactory { return "CamelStitchCode"; } /** - * HTTP headers that are returned from Stitch Import HTTP API. + * The HTTP headers of the response of the Stitch Import API, by header + * name. Set only when the request succeeds. * * The option is a: {@code Map<String, Object>} type. * @@ -447,8 +470,8 @@ public interface StitchEndpointBuilderFactory { return "CamelStitchHeaders"; } /** - * The status message that Stitch returns after sending the data through - * Stitch Import API. + * The status field of the JSON response of the Stitch Import API, empty + * when the response has none. Set only when the request succeeds. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index ac40bc4924f1..749868e9c4e2 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -358,7 +358,7 @@ or removes its row. | camel-ssh | ssh | yes | | camel-state-store | state-store | yes | | camel-stax | stax | yes | -| camel-stitch | stitch | | +| camel-stitch | stitch | yes | | camel-stream | stream | yes | | camel-stringtemplate | string-template | | | camel-stripe | stripe | |
