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 b219a67784afde6f58f6cea8c04205870721e79f Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 17:09:23 2026 +0100 CAMEL-23832: camel-google-bigquery - improve the component and option descriptions This commit rewrites the component descriptions of google-bigquery and google-bigquery-sql, and the texts of 5 component options, 13 endpoint options and 8 headers. The new texts say where the project, dataset and table come from, which header replaces which option, how the insert ID and the job ID and page token headers work, and that the serviceAccountKey is the location of a key file, not its content. The component options projectId and datasetId are now described as not used, which is what the code does. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-google-bigquery 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]> --- .../catalog/components/google-bigquery-sql.json | 28 +++---- .../camel/catalog/components/google-bigquery.json | 28 +++---- .../catalog/docs/google-bigquery-component.adoc | 4 +- .../docs/google-bigquery-sql-component.adoc | 4 +- .../component/google/bigquery/google-bigquery.json | 28 +++---- .../google/bigquery/sql/google-bigquery-sql.json | 28 +++---- .../src/main/docs/google-bigquery-component.adoc | 4 +- .../main/docs/google-bigquery-sql-component.adoc | 4 +- .../google/bigquery/GoogleBigQueryComponent.java | 17 ++-- .../bigquery/GoogleBigQueryConfiguration.java | 26 ++++--- .../google/bigquery/GoogleBigQueryConstants.java | 36 ++++++--- .../google/bigquery/GoogleBigQueryEndpoint.java | 2 +- .../bigquery/sql/GoogleBigQuerySQLComponent.java | 12 +-- .../sql/GoogleBigQuerySQLConfiguration.java | 37 ++++++--- .../bigquery/sql/GoogleBigQuerySQLEndpoint.java | 2 +- .../component/ComponentsBuilderFactory.java | 4 +- .../dsl/GoogleBigqueryComponentBuilderFactory.java | 14 ++-- .../GoogleBigquerySqlComponentBuilderFactory.java | 11 +-- .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 46 +++++++---- .../dsl/GoogleBigQueryEndpointBuilderFactory.java | 63 +++++++++------ .../GoogleBigQuerySQLEndpointBuilderFactory.java | 90 +++++++++++++++------- tasks/component-descriptions.md | 2 +- 23 files changed, 295 insertions(+), 199 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery-sql.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery-sql.json index dcb3f9c22226..c24439cee80a 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery-sql.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery-sql.json @@ -3,7 +3,7 @@ "kind": "component", "name": "google-bigquery-sql", "title": "Google BigQuery Standard SQL", - "description": "Access Google Cloud BigQuery service using SQL queries.", + "description": "Run SQL queries and statements in Google BigQuery.", "deprecated": false, "firstVersion": "2.23.0", "label": "cloud,messaging", @@ -24,29 +24,29 @@ "remote": true }, "componentProperties": { - "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used" }, + "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own conne [...] "lazyStartProducer": { "index": 1, "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 [...] - "projectId": { "index": 2, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Google Cloud Project Id" }, + "projectId": { "index": 2, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI." }, "autowiredEnabled": { "index": 3, "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 [...] }, "headers": { - "CamelGoogleBigQueryTranslatedQuery": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Preprocessed query text", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TRANSLATED_QUERY" }, - "CamelGoogleBigQueryJobId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.google.cloud.bigquery.JobId", "deprecated": false, "autowired": false, "secret": false, "description": "A custom JobId to use", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#JOB_ID" }, - "CamelGoogleBigQueryPageToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The page token to retrieve a specific page of results from BigQuery. If not set, the first page is returned", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PAGE_TOKEN" }, - "CamelGoogleBigQueryNextPageToken": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The next page token returned by BigQuery. Use this token in the CamelGoogleBigQueryPageToken header of a subsequent request to retrieve the next page of results", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#NEXT_ [...] + "CamelGoogleBigQueryTranslatedQuery": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The query that the producer sends to BigQuery, after it has replaced the ${name} placeholders. The producer sets it.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TRANSLATED_QUERY" }, + "CamelGoogleBigQueryJobId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.google.cloud.bigquery.JobId", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a query job. When set, the producer does not run the query but waits for this job and returns its result, for example to read the next page with the CamelGoogleBigQueryPageToken header. The producer sets it after a SELECT wit [...] + "CamelGoogleBigQueryPageToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The token of the page of SELECT results to return, from the CamelGoogleBigQueryNextPageToken header of a previous call. It replaces the pageToken option. Send it with the CamelGoogleBigQueryJobId header of that call, so the page is read from the same job." [...] + "CamelGoogleBigQueryNextPageToken": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The token of the next page of SELECT results, or null for the last page. The producer sets it with the SELECT_LIST output type. Send it in the CamelGoogleBigQueryPageToken header to read the next page.", "constantName": "org.apache.camel.component.goog [...] }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The query is set on the endpoint. A Map body gives the values of the @name parameters, before the headers of the same name; any other body is ignored" }, "producerOut": { "carriers": [ "list", "value", "null" ], "byOption": [ { "option": "outputType", "value": "STREAM_LIST", "carriers": [ "iterator", "value", "null" ] } ], "description": "For a SELECT the rows of the page, a Map per row whose scalar values are the text BigQuery returns, with the next page token and the job id in headers; with outputType=STREAM_LIST an Iterator of those Maps over all pages. For a DML statement the number of affected rows as a Long, and no body for anot [...] }, "properties": { - "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Google Cloud Project Id" }, - "queryString": { "index": 1, "kind": "path", "displayName": "Query String", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "largeInput": true, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "BigQuery standard SQL query" }, - "connectionFactory": { "index": 2, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "ConnectionFactory t [...] - "outputType": { "index": 3, "kind": "parameter", "displayName": "Output Type", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.google.bigquery.sql.OutputType", "enum": [ "SELECT_LIST", "STREAM_LIST" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SELECT_LIST", "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "co [...] - "pageSize": { "index": 4, "kind": "parameter", "displayName": "Page Size", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Size of a page to request. Unset by default" }, - "pageToken": { "index": 5, "kind": "parameter", "displayName": "Page Token", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Page token, returned by a previous call, to request the next page of results" }, + "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The ID of the Google Cloud project that runs the query jobs. The endpoint also sets it as the [...] + "queryString": { "index": 1, "kind": "path", "displayName": "Query String", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "largeInput": true, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The GoogleSQL (standard SQL) query or st [...] + "connectionFactory": { "index": 2, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The org.apache.came [...] + "outputType": { "index": 3, "kind": "parameter", "displayName": "Output Type", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.google.bigquery.sql.OutputType", "enum": [ "SELECT_LIST", "STREAM_LIST" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SELECT_LIST", "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "co [...] + "pageSize": { "index": 4, "kind": "parameter", "displayName": "Page Size", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The maximum number of rows in a page of SELECT results. With 0 or less, BigQue [...] + "pageToken": { "index": 5, "kind": "parameter", "displayName": "Page Token", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The token of the page of SELECT results to return, from the CamelGoogleBigQueryNextP [...] "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 [...] - "serviceAccountKey": { "index": 7, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application a [...] + "serviceAccountKey": { "index": 7, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The location of the JSON key file of the service account to authent [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery.json index 2c60fc39e809..6a891e582c3e 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-bigquery.json @@ -3,7 +3,7 @@ "kind": "component", "name": "google-bigquery", "title": "Google BigQuery", - "description": "Google BigQuery data warehouse for analytics.", + "description": "Insert rows into Google BigQuery tables.", "deprecated": false, "firstVersion": "2.20.0", "label": "cloud,bigdata", @@ -24,29 +24,29 @@ "remote": true }, "componentProperties": { - "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used" }, - "datasetId": { "index": 1, "kind": "property", "displayName": "Dataset Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "BigQuery Dataset Id" }, + "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own conne [...] + "datasetId": { "index": 1, "kind": "property", "displayName": "Dataset Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a BigQuery dataset. Not used: an endpoint takes the dataset ID from its URI." }, "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 [...] - "projectId": { "index": 3, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Google Cloud Project Id" }, + "projectId": { "index": 3, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI." }, "autowiredEnabled": { "index": 4, "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 [...] }, "headers": { - "CamelGoogleBigQueryTableSuffix": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Table suffix to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TABLE_SUFFIX" }, - "CamelGoogleBigQueryTableId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Table id where data will be submitted. If specified will override endpoint configuration", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TABLE_ID" }, - "CamelGoogleBigQueryInsertId": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "InsertId to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#INSERT_ID" }, - "CamelGoogleBigQueryPartitionDecorator": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Partition decorator to indicate partition to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PARTITION_DECORATOR" } + "CamelGoogleBigQueryTableSuffix": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The suffix of a template table: BigQuery inserts the rows into the table whose ID is the table ID followed by this suffix, and creates it with the schema of the table ID table if it does not exist.", "constantName": "org.apache.camel.component.google.big [...] + "CamelGoogleBigQueryTableId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the table to insert the rows into. It replaces the tableId of the endpoint. In a grouped exchange, an exchange without this header goes to the table of the exchange before it.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQ [...] + "CamelGoogleBigQueryInsertId": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The insert ID of the row of a Map body, which BigQuery uses to drop duplicate rows on a best-effort basis. It is not used for a List body, nor when the useAsInsertId option is set.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQuery [...] + "CamelGoogleBigQueryPartitionDecorator": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The partition of a partitioned table to insert the rows into, such as 20260131 for a day. The producer appends it to the table ID as table$partition.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PARTITION_D [...] }, "bodyTypes": { "producerIn": { "carriers": [ "map", "list" ], "description": "The row to insert as a Map of column names to values, or a List of such Maps for one row each; the exchanges of a grouped aggregation are inserted together. Text such as JSON, bytes, a stream, a POJO, a List with an element that is not a Map, or no body fails: unmarshal it into a Map first. When one exchange of a grouped aggregation has such a body, the grouped exchange fails and none of its rows is inserted" }, "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Google Cloud Project Id" }, - "datasetId": { "index": 1, "kind": "path", "displayName": "Dataset Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "BigQuery Dataset Id" }, - "tableId": { "index": 2, "kind": "path", "displayName": "Table Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "BigQuery table id" }, - "connectionFactory": { "index": 3, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "ConnectionFactory to obtai [...] - "useAsInsertId": { "index": 4, "kind": "parameter", "displayName": "Use As Insert Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Field name to use as insert id" }, + "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the Google Cloud project of the dataset. The endpoint sets it as the project of the BigQuer [...] + "datasetId": { "index": 1, "kind": "path", "displayName": "Dataset Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the BigQuery dataset that holds the table." }, + "tableId": { "index": 2, "kind": "path", "displayName": "Table Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the table to insert the rows into. The CamelGoogleBigQueryTableId header replaces it. If neith [...] + "connectionFactory": { "index": 3, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The org.apache.camel.compo [...] + "useAsInsertId": { "index": 4, "kind": "parameter", "displayName": "Use As Insert Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The name of the field of each row whose value is the insert ID of the row, which BigQuery [...] "lazyStartProducer": { "index": 5, "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 [...] - "serviceAccountKey": { "index": 6, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application as a ser [...] + "serviceAccountKey": { "index": 6, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The location of the JSON key file of the service account to authenticate w [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-component.adoc index fb865ced8d25..7af1552e68c7 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-component.adoc @@ -2,7 +2,7 @@ :doctitle: Google BigQuery :shortname: google-bigquery :artifactid: camel-google-bigquery -:description: Google BigQuery data warehouse for analytics. +:description: Insert rows into Google BigQuery tables. :since: 2.20 :supportlevel: Stable :tabs-sync-option: @@ -156,5 +156,3 @@ query parameter `useAsInsertId`. As an insert id need to be specified per row in be used when the payload is a list. If the payload is a list the `GoogleBigQueryConstants.INSERT_ID` will be ignored. In that case use the query parameter `useAsInsertId`. - - diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc index 6e4f7acb3568..f16906838193 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/google-bigquery-sql-component.adoc @@ -2,7 +2,7 @@ :doctitle: Google BigQuery Standard SQL :shortname: google-bigquery-sql :artifactid: camel-google-bigquery -:description: Access Google Cloud BigQuery service using SQL queries. +:description: Run SQL queries and statements in Google BigQuery. :since: 2.23 :supportlevel: Stable :tabs-sync-option: @@ -277,5 +277,3 @@ BigQuery returns for them, as a `String`: convert them where you need a number o |null | |=== - - diff --git a/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/google-bigquery.json b/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/google-bigquery.json index 2c60fc39e809..6a891e582c3e 100644 --- a/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/google-bigquery.json +++ b/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/google-bigquery.json @@ -3,7 +3,7 @@ "kind": "component", "name": "google-bigquery", "title": "Google BigQuery", - "description": "Google BigQuery data warehouse for analytics.", + "description": "Insert rows into Google BigQuery tables.", "deprecated": false, "firstVersion": "2.20.0", "label": "cloud,bigdata", @@ -24,29 +24,29 @@ "remote": true }, "componentProperties": { - "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used" }, - "datasetId": { "index": 1, "kind": "property", "displayName": "Dataset Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "BigQuery Dataset Id" }, + "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own conne [...] + "datasetId": { "index": 1, "kind": "property", "displayName": "Dataset Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a BigQuery dataset. Not used: an endpoint takes the dataset ID from its URI." }, "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 [...] - "projectId": { "index": 3, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Google Cloud Project Id" }, + "projectId": { "index": 3, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI." }, "autowiredEnabled": { "index": 4, "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 [...] }, "headers": { - "CamelGoogleBigQueryTableSuffix": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Table suffix to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TABLE_SUFFIX" }, - "CamelGoogleBigQueryTableId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Table id where data will be submitted. If specified will override endpoint configuration", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TABLE_ID" }, - "CamelGoogleBigQueryInsertId": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "InsertId to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#INSERT_ID" }, - "CamelGoogleBigQueryPartitionDecorator": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Partition decorator to indicate partition to use when inserting data", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PARTITION_DECORATOR" } + "CamelGoogleBigQueryTableSuffix": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The suffix of a template table: BigQuery inserts the rows into the table whose ID is the table ID followed by this suffix, and creates it with the schema of the table ID table if it does not exist.", "constantName": "org.apache.camel.component.google.big [...] + "CamelGoogleBigQueryTableId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of the table to insert the rows into. It replaces the tableId of the endpoint. In a grouped exchange, an exchange without this header goes to the table of the exchange before it.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQ [...] + "CamelGoogleBigQueryInsertId": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The insert ID of the row of a Map body, which BigQuery uses to drop duplicate rows on a best-effort basis. It is not used for a List body, nor when the useAsInsertId option is set.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQuery [...] + "CamelGoogleBigQueryPartitionDecorator": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The partition of a partitioned table to insert the rows into, such as 20260131 for a day. The producer appends it to the table ID as table$partition.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PARTITION_D [...] }, "bodyTypes": { "producerIn": { "carriers": [ "map", "list" ], "description": "The row to insert as a Map of column names to values, or a List of such Maps for one row each; the exchanges of a grouped aggregation are inserted together. Text such as JSON, bytes, a stream, a POJO, a List with an element that is not a Map, or no body fails: unmarshal it into a Map first. When one exchange of a grouped aggregation has such a body, the grouped exchange fails and none of its rows is inserted" }, "producerOut": { "carriers": [ "unchanged" ] } }, "properties": { - "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Google Cloud Project Id" }, - "datasetId": { "index": 1, "kind": "path", "displayName": "Dataset Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "BigQuery Dataset Id" }, - "tableId": { "index": 2, "kind": "path", "displayName": "Table Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "BigQuery table id" }, - "connectionFactory": { "index": 3, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "ConnectionFactory to obtai [...] - "useAsInsertId": { "index": 4, "kind": "parameter", "displayName": "Use As Insert Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Field name to use as insert id" }, + "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the Google Cloud project of the dataset. The endpoint sets it as the project of the BigQuer [...] + "datasetId": { "index": 1, "kind": "path", "displayName": "Dataset Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the BigQuery dataset that holds the table." }, + "tableId": { "index": 2, "kind": "path", "displayName": "Table Id", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The ID of the table to insert the rows into. The CamelGoogleBigQueryTableId header replaces it. If neith [...] + "connectionFactory": { "index": 3, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The org.apache.camel.compo [...] + "useAsInsertId": { "index": 4, "kind": "parameter", "displayName": "Use As Insert Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The name of the field of each row whose value is the insert ID of the row, which BigQuery [...] "lazyStartProducer": { "index": 5, "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 [...] - "serviceAccountKey": { "index": 6, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application as a ser [...] + "serviceAccountKey": { "index": 6, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.GoogleBigQueryConfiguration", "configurationField": "configuration", "description": "The location of the JSON key file of the service account to authenticate w [...] } } diff --git a/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json b/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json index dcb3f9c22226..c24439cee80a 100644 --- a/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json +++ b/components/camel-google/camel-google-bigquery/src/generated/resources/META-INF/org/apache/camel/component/google/bigquery/sql/google-bigquery-sql.json @@ -3,7 +3,7 @@ "kind": "component", "name": "google-bigquery-sql", "title": "Google BigQuery Standard SQL", - "description": "Access Google Cloud BigQuery service using SQL queries.", + "description": "Run SQL queries and statements in Google BigQuery.", "deprecated": false, "firstVersion": "2.23.0", "label": "cloud,messaging", @@ -24,29 +24,29 @@ "remote": true }, "componentProperties": { - "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used" }, + "connectionFactory": { "index": 0, "kind": "property", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "description": "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own conne [...] "lazyStartProducer": { "index": 1, "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 [...] - "projectId": { "index": 2, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Google Cloud Project Id" }, + "projectId": { "index": 2, "kind": "property", "displayName": "Project Id", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI." }, "autowiredEnabled": { "index": 3, "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 [...] }, "headers": { - "CamelGoogleBigQueryTranslatedQuery": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "Preprocessed query text", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TRANSLATED_QUERY" }, - "CamelGoogleBigQueryJobId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.google.cloud.bigquery.JobId", "deprecated": false, "autowired": false, "secret": false, "description": "A custom JobId to use", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#JOB_ID" }, - "CamelGoogleBigQueryPageToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The page token to retrieve a specific page of results from BigQuery. If not set, the first page is returned", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#PAGE_TOKEN" }, - "CamelGoogleBigQueryNextPageToken": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The next page token returned by BigQuery. Use this token in the CamelGoogleBigQueryPageToken header of a subsequent request to retrieve the next page of results", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#NEXT_ [...] + "CamelGoogleBigQueryTranslatedQuery": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The query that the producer sends to BigQuery, after it has replaced the ${name} placeholders. The producer sets it.", "constantName": "org.apache.camel.component.google.bigquery.GoogleBigQueryConstants#TRANSLATED_QUERY" }, + "CamelGoogleBigQueryJobId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "com.google.cloud.bigquery.JobId", "deprecated": false, "autowired": false, "secret": false, "description": "The ID of a query job. When set, the producer does not run the query but waits for this job and returns its result, for example to read the next page with the CamelGoogleBigQueryPageToken header. The producer sets it after a SELECT wit [...] + "CamelGoogleBigQueryPageToken": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The token of the page of SELECT results to return, from the CamelGoogleBigQueryNextPageToken header of a previous call. It replaces the pageToken option. Send it with the CamelGoogleBigQueryJobId header of that call, so the page is read from the same job." [...] + "CamelGoogleBigQueryNextPageToken": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The token of the next page of SELECT results, or null for the last page. The producer sets it with the SELECT_LIST output type. Send it in the CamelGoogleBigQueryPageToken header to read the next page.", "constantName": "org.apache.camel.component.goog [...] }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The query is set on the endpoint. A Map body gives the values of the @name parameters, before the headers of the same name; any other body is ignored" }, "producerOut": { "carriers": [ "list", "value", "null" ], "byOption": [ { "option": "outputType", "value": "STREAM_LIST", "carriers": [ "iterator", "value", "null" ] } ], "description": "For a SELECT the rows of the page, a Map per row whose scalar values are the text BigQuery returns, with the next page token and the job id in headers; with outputType=STREAM_LIST an Iterator of those Maps over all pages. For a DML statement the number of affected rows as a Long, and no body for anot [...] }, "properties": { - "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Google Cloud Project Id" }, - "queryString": { "index": 1, "kind": "path", "displayName": "Query String", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "largeInput": true, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "BigQuery standard SQL query" }, - "connectionFactory": { "index": 2, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "ConnectionFactory t [...] - "outputType": { "index": 3, "kind": "parameter", "displayName": "Output Type", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.google.bigquery.sql.OutputType", "enum": [ "SELECT_LIST", "STREAM_LIST" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SELECT_LIST", "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "co [...] - "pageSize": { "index": 4, "kind": "parameter", "displayName": "Page Size", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Size of a page to request. Unset by default" }, - "pageToken": { "index": 5, "kind": "parameter", "displayName": "Page Token", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Page token, returned by a previous call, to request the next page of results" }, + "projectId": { "index": 0, "kind": "path", "displayName": "Project Id", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The ID of the Google Cloud project that runs the query jobs. The endpoint also sets it as the [...] + "queryString": { "index": 1, "kind": "path", "displayName": "Query String", "group": "common", "label": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "supportFileReference": true, "largeInput": true, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The GoogleSQL (standard SQL) query or st [...] + "connectionFactory": { "index": 2, "kind": "parameter", "displayName": "Connection Factory", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory", "deprecated": false, "autowired": true, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The org.apache.came [...] + "outputType": { "index": 3, "kind": "parameter", "displayName": "Output Type", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.google.bigquery.sql.OutputType", "enum": [ "SELECT_LIST", "STREAM_LIST" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "SELECT_LIST", "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "co [...] + "pageSize": { "index": 4, "kind": "parameter", "displayName": "Page Size", "group": "producer", "label": "producer", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The maximum number of rows in a page of SELECT results. With 0 or less, BigQue [...] + "pageToken": { "index": 5, "kind": "parameter", "displayName": "Page Token", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The token of the page of SELECT results to return, from the CamelGoogleBigQueryNextP [...] "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 [...] - "serviceAccountKey": { "index": 7, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "Service account key in json format to authenticate an application a [...] + "serviceAccountKey": { "index": 7, "kind": "parameter", "displayName": "Service Account Key", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLConfiguration", "configurationField": "configuration", "description": "The location of the JSON key file of the service account to authent [...] } } diff --git a/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc b/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc index fb865ced8d25..7af1552e68c7 100644 --- a/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc +++ b/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-component.adoc @@ -2,7 +2,7 @@ :doctitle: Google BigQuery :shortname: google-bigquery :artifactid: camel-google-bigquery -:description: Google BigQuery data warehouse for analytics. +:description: Insert rows into Google BigQuery tables. :since: 2.20 :supportlevel: Stable :tabs-sync-option: @@ -156,5 +156,3 @@ query parameter `useAsInsertId`. As an insert id need to be specified per row in be used when the payload is a list. If the payload is a list the `GoogleBigQueryConstants.INSERT_ID` will be ignored. In that case use the query parameter `useAsInsertId`. - - diff --git a/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc b/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc index 6e4f7acb3568..f16906838193 100644 --- a/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc +++ b/components/camel-google/camel-google-bigquery/src/main/docs/google-bigquery-sql-component.adoc @@ -2,7 +2,7 @@ :doctitle: Google BigQuery Standard SQL :shortname: google-bigquery-sql :artifactid: camel-google-bigquery -:description: Access Google Cloud BigQuery service using SQL queries. +:description: Run SQL queries and statements in Google BigQuery. :since: 2.23 :supportlevel: Stable :tabs-sync-option: @@ -277,5 +277,3 @@ BigQuery returns for them, as a `String`: convert them where you need a number o |null | |=== - - diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryComponent.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryComponent.java index 0fdaf60d5855..a81ffbaa2c48 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryComponent.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryComponent.java @@ -27,16 +27,18 @@ import org.apache.camel.support.DefaultComponent; @Component("google-bigquery") public class GoogleBigQueryComponent extends DefaultComponent { - @Metadata + @Metadata(description = "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI.") private String projectId; - @Metadata + @Metadata(description = "The ID of a BigQuery dataset. Not used: an endpoint takes the dataset ID from its URI.") private String datasetId; @Metadata private GoogleBigQueryConfiguration configuration; - @Metadata(autowired = true) + @Metadata(description = "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the" + + " BigQuery client for the endpoints that do not set their own connectionFactory.", + autowired = true) private GoogleBigQueryConnectionFactory connectionFactory; public GoogleBigQueryComponent() { @@ -75,9 +77,6 @@ public class GoogleBigQueryComponent extends DefaultComponent { return projectId; } - /** - * Google Cloud Project Id - */ public void setProjectId(String projectId) { this.projectId = projectId; } @@ -86,9 +85,6 @@ public class GoogleBigQueryComponent extends DefaultComponent { return datasetId; } - /** - * BigQuery Dataset Id - */ public void setDatasetId(String datasetId) { this.datasetId = datasetId; } @@ -97,9 +93,6 @@ public class GoogleBigQueryComponent extends DefaultComponent { return connectionFactory; } - /** - * ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used - */ public void setConnectionFactory(GoogleBigQueryConnectionFactory connectionFactory) { this.connectionFactory = connectionFactory; } diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java index b776863ee17b..536b9b10cb3b 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConfiguration.java @@ -26,27 +26,38 @@ import org.apache.camel.spi.UriPath; @UriParams public class GoogleBigQueryConfiguration implements Cloneable, GoogleCommonConfiguration { - @UriParam(description = "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used") + @UriParam(description = "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the" + + " BigQuery client. If not set, the connectionFactory of the component is used, and if that is not" + + " set either, the endpoint creates one from the serviceAccountKey and projectId options. With a" + + " factory that is set, the rows go to the dataset in the default project of its client.") @Metadata(autowired = true) private GoogleBigQueryConnectionFactory connectionFactory; - @UriParam(description = "Field name to use as insert id") + @UriParam(description = "The name of the field of each row whose value is the insert ID of the row, which BigQuery uses to" + + " drop duplicate rows on a best-effort basis. It applies to a Map body and to each Map of a List" + + " body. When set, the CamelGoogleBigQueryInsertId header is not used.") private String useAsInsertId; - @UriPath(label = "common", description = "Google Cloud Project Id") + @UriPath(label = "common", description = "The ID of the Google Cloud project of the dataset. The endpoint sets it as the" + + " project of the BigQuery client that it creates.") @Metadata(required = true) private String projectId; - @UriPath(label = "common", description = "BigQuery Dataset Id") + @UriPath(label = "common", description = "The ID of the BigQuery dataset that holds the table.") @Metadata(required = true) private String datasetId; - @UriPath(label = "common", description = "BigQuery table id") + @UriPath(label = "common", + description = "The ID of the table to insert the rows into. The CamelGoogleBigQueryTableId header" + + " replaces it. If neither is set, the exchange fails.") @Metadata(required = false) private String tableId; @UriParam(label = "security", - description = "Service account key in json format to authenticate an application as a service account to google cloud platform") + description = "The location of the JSON key file of the service account to authenticate with Google Cloud, such" + + " as a classpath:, file: or https: resource, or base64: followed by the Base64 encoded content of" + + " the file. If not set, Application Default Credentials are used. It is not used when a" + + " connectionFactory is set.") @Metadata(required = false) private String serviceAccountKey; @@ -64,9 +75,6 @@ public class GoogleBigQueryConfiguration implements Cloneable, GoogleCommonConfi } } - /** - * ConnectionFactory to obtain connection to Bigquery Service. If non provided the default will be used. - */ public GoogleBigQueryConnectionFactory getConnectionFactory() { return connectionFactory; } diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConstants.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConstants.java index c1d993ce8ff0..bf422a5e5b8b 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConstants.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryConstants.java @@ -24,27 +24,41 @@ public final class GoogleBigQueryConstants { public static final String SCHEME_BIGQUERY_SQL = "google-bigquery-sql"; public static final String SCHEME_BIGQUERY = "google-bigquery"; - @Metadata(description = "Table suffix to use when inserting data", javaType = "String", applicableFor = SCHEME_BIGQUERY) + @Metadata(description = "The suffix of a template table: BigQuery inserts the rows into the table whose ID is the table ID" + + " followed by this suffix, and creates it with the schema of the table ID table if it does not" + + " exist.", + javaType = "String", applicableFor = SCHEME_BIGQUERY) public static final String TABLE_SUFFIX = "CamelGoogleBigQueryTableSuffix"; - @Metadata(description = "Table id where data will be submitted. If specified will override endpoint configuration", + @Metadata(description = "The ID of the table to insert the rows into. It replaces the tableId of the endpoint. In a grouped" + + " exchange, an exchange without this header goes to the table of the exchange before it.", javaType = "String", applicableFor = SCHEME_BIGQUERY) public static final String TABLE_ID = "CamelGoogleBigQueryTableId"; - @Metadata(description = "InsertId to use when inserting data", javaType = "String", applicableFor = SCHEME_BIGQUERY) + @Metadata(description = "The insert ID of the row of a Map body, which BigQuery uses to drop duplicate rows on a best-effort" + + " basis. It is not used for a List body, nor when the useAsInsertId option is set.", + javaType = "String", applicableFor = SCHEME_BIGQUERY) public static final String INSERT_ID = "CamelGoogleBigQueryInsertId"; - @Metadata(description = "Partition decorator to indicate partition to use when inserting data", javaType = "String", - applicableFor = SCHEME_BIGQUERY) + @Metadata(description = "The partition of a partitioned table to insert the rows into, such as 20260131 for a day. The" + + " producer appends it to the table ID as table$partition.", + javaType = "String", applicableFor = SCHEME_BIGQUERY) public static final String PARTITION_DECORATOR = "CamelGoogleBigQueryPartitionDecorator"; - @Metadata(description = "Preprocessed query text", javaType = "String", applicableFor = SCHEME_BIGQUERY_SQL) + @Metadata(description = "The query that the producer sends to BigQuery, after it has replaced the ${name} placeholders." + + " The producer sets it.", + javaType = "String", applicableFor = SCHEME_BIGQUERY_SQL) public static final String TRANSLATED_QUERY = "CamelGoogleBigQueryTranslatedQuery"; - @Metadata(description = "A custom `JobId` to use", javaType = "com.google.cloud.bigquery.JobId", + @Metadata(description = "The ID of a query job. When set, the producer does not run the query but waits for this job and" + + " returns its result, for example to read the next page with the CamelGoogleBigQueryPageToken" + + " header. The producer sets it after a SELECT with the SELECT_LIST output type.", + javaType = "com.google.cloud.bigquery.JobId", applicableFor = SCHEME_BIGQUERY_SQL) public static final String JOB_ID = "CamelGoogleBigQueryJobId"; - @Metadata(description = "The page token to retrieve a specific page of results from BigQuery. " + - "If not set, the first page is returned", + @Metadata(description = "The token of the page of SELECT results to return, from the CamelGoogleBigQueryNextPageToken" + + " header of a previous call. It replaces the pageToken option. Send it with the" + + " CamelGoogleBigQueryJobId header of that call, so the page is read from the same job.", javaType = "String", applicableFor = SCHEME_BIGQUERY_SQL) public static final String PAGE_TOKEN = "CamelGoogleBigQueryPageToken"; - @Metadata(description = "The next page token returned by BigQuery. Use this token in the " + - "`CamelGoogleBigQueryPageToken` header of a subsequent request to retrieve the next page of results", + @Metadata(description = "The token of the next page of SELECT results, or null for the last page. The producer sets it" + + " with the SELECT_LIST output type. Send it in the CamelGoogleBigQueryPageToken header to read the" + + " next page.", javaType = "String", applicableFor = SCHEME_BIGQUERY_SQL) public static final String NEXT_PAGE_TOKEN = "CamelGoogleBigQueryNextPageToken"; diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java index 0ee0165bc26e..80d69e460a18 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/GoogleBigQueryEndpoint.java @@ -33,7 +33,7 @@ import org.apache.camel.util.ObjectHelper; import static org.apache.camel.component.google.bigquery.GoogleBigQueryConstants.SCHEME_BIGQUERY; /** - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * BigQuery Endpoint Definition Represents a table within a BigQuery dataset Contains configuration details for a single * table and the utility methods (such as check, create) to ease operations URI Parameters: * Logger ID - To ensure that diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLComponent.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLComponent.java index 36c8ed6dc93f..904ffe57cccb 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLComponent.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLComponent.java @@ -28,13 +28,15 @@ import org.apache.camel.support.DefaultComponent; @Component("google-bigquery-sql") public class GoogleBigQuerySQLComponent extends DefaultComponent { - @Metadata + @Metadata(description = "The ID of a Google Cloud project. Not used: an endpoint takes the project ID from its URI.") private String projectId; @Metadata private GoogleBigQuerySQLConfiguration configuration; - @Metadata(autowired = true) + @Metadata(description = "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the" + + " BigQuery client for the endpoints that do not set their own connectionFactory.", + autowired = true) private GoogleBigQueryConnectionFactory connectionFactory; public GoogleBigQuerySQLComponent() { @@ -74,9 +76,6 @@ public class GoogleBigQuerySQLComponent extends DefaultComponent { return projectId; } - /** - * Google Cloud Project Id - */ public void setProjectId(String projectId) { this.projectId = projectId; } @@ -85,9 +84,6 @@ public class GoogleBigQuerySQLComponent extends DefaultComponent { return connectionFactory; } - /** - * ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used - */ public void setConnectionFactory(GoogleBigQueryConnectionFactory connectionFactory) { this.connectionFactory = connectionFactory; } diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLConfiguration.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLConfiguration.java index deac850258b7..16b0cdc64d0e 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLConfiguration.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLConfiguration.java @@ -26,29 +26,49 @@ import org.apache.camel.spi.UriPath; @UriParams public class GoogleBigQuerySQLConfiguration implements Cloneable { - @UriPath(label = "common", description = "BigQuery standard SQL query") + @UriPath(label = "common", description = "The GoogleSQL (standard SQL) query or statement to run, or a resource with the" + + " query, such as classpath:query.sql, loaded when the producer starts. A named" + + " query parameter takes its value from the entry of that name of a Map body, else" + + " from the header of that name, and a ${name} placeholder is replaced by the text" + + " of the header or exchange property of that name.") @Metadata(required = true, supportFileReference = true, largeInput = true) private String queryString; - @UriParam(description = "ConnectionFactory to obtain connection to Bigquery Service. If not provided the default one will be used") + @UriParam(description = "The org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the" + + " BigQuery client. If not set, the connectionFactory of the component is used, and if that is not" + + " set either, the endpoint creates one from the serviceAccountKey and projectId options.") @Metadata(autowired = true) private GoogleBigQueryConnectionFactory connectionFactory; - @UriPath(label = "common", description = "Google Cloud Project Id") + @UriPath(label = "common", + description = "The ID of the Google Cloud project that runs the query jobs. The endpoint also sets" + + " it as the project of the BigQuery client that it creates.") @Metadata(required = true) private String projectId; @UriParam(label = "security", - description = "Service account key in json format to authenticate an application as a service account to google cloud platform") + description = "The location of the JSON key file of the service account to authenticate with Google Cloud, such" + + " as a classpath:, file: or https: resource, or base64: followed by the Base64 encoded content of" + + " the file. If not set, Application Default Credentials are used. It is not used when a" + + " connectionFactory is set.") private String serviceAccountKey; - @UriParam(label = "producer", description = "Page token, returned by a previous call, to request the next page of results") + @UriParam(label = "producer", description = "The token of the page of SELECT results to return, from the" + + " CamelGoogleBigQueryNextPageToken header of a previous call. If not set, the" + + " first page is returned. The CamelGoogleBigQueryPageToken header replaces it.") private String pageToken; - @UriParam(label = "producer", description = "Size of a page to request. Unset by default", defaultValue = "0") + @UriParam(label = "producer", description = "The maximum number of rows in a page of SELECT results. With 0 or less," + + " BigQuery chooses the page size.", + defaultValue = "0") private long pageSize; - @UriParam(label = "producer", description = "Output mode type for select queries", defaultValue = "SELECT_LIST") + @UriParam(label = "producer", + description = "How the producer returns the rows of a SELECT. SELECT_LIST returns one page as a" + + " List of Maps, with the CamelGoogleBigQueryNextPageToken and" + + " CamelGoogleBigQueryJobId headers. STREAM_LIST returns an Iterator of Maps that" + + " fetches all the pages while it is read, and sets no header.", + defaultValue = "SELECT_LIST") private OutputType outputType = OutputType.SELECT_LIST; public void parseRemaining(String remaining) { @@ -62,9 +82,6 @@ public class GoogleBigQuerySQLConfiguration implements Cloneable { queryString = remaining.substring(indexOfColon + 1); } - /** - * ConnectionFactory to obtain connection to Bigquery Service. If non provided the default will be used. - */ public GoogleBigQueryConnectionFactory getConnectionFactory() { return connectionFactory; } diff --git a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java index 6c9675517b55..5d7e944090ac 100644 --- a/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java +++ b/components/camel-google/camel-google-bigquery/src/main/java/org/apache/camel/component/google/bigquery/sql/GoogleBigQuerySQLEndpoint.java @@ -33,7 +33,7 @@ import org.apache.camel.support.DefaultEndpoint; import static org.apache.camel.component.google.bigquery.GoogleBigQueryConstants.SCHEME_BIGQUERY_SQL; /** - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * BigQuery Endpoint Definition Represents a table within a BigQuery dataset Contains configuration details for a single * table and the utility methods (such as check, create) to ease operations URI Parameters: * Logger ID - To ensure that 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 8003034adcc7..36aef66b6f4d 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 @@ -2016,7 +2016,7 @@ public interface ComponentsBuilderFactory { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -2029,7 +2029,7 @@ public interface ComponentsBuilderFactory { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigqueryComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigqueryComponentBuilderFactory.java index 9b0614393d2b..ae76e8afa056 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigqueryComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigqueryComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.google.bigquery.GoogleBigQueryComponent; /** - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface GoogleBigqueryComponentBuilderFactory { /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -51,8 +51,8 @@ public interface GoogleBigqueryComponentBuilderFactory { interface GoogleBigqueryComponentBuilder extends ComponentBuilder<GoogleBigQueryComponent> { /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own connectionFactory. * * The option is a: * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -68,7 +68,8 @@ public interface GoogleBigqueryComponentBuilderFactory { } /** - * BigQuery Dataset Id. + * The ID of a BigQuery dataset. Not used: an endpoint takes the dataset + * ID from its URI. * * The option is a: <code>java.lang.String</code> type. * @@ -108,7 +109,8 @@ public interface GoogleBigqueryComponentBuilderFactory { } /** - * Google Cloud Project Id. + * The ID of a Google Cloud project. Not used: an endpoint takes the + * project ID from its URI. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigquerySqlComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigquerySqlComponentBuilderFactory.java index d27e83bf4961..ec85a72fe680 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigquerySqlComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/GoogleBigquerySqlComponentBuilderFactory.java @@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLComponent; /** - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Generated by camel build tools - do NOT edit this file! */ @@ -33,7 +33,7 @@ public interface GoogleBigquerySqlComponentBuilderFactory { /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -51,8 +51,8 @@ public interface GoogleBigquerySqlComponentBuilderFactory { interface GoogleBigquerySqlComponentBuilder extends ComponentBuilder<GoogleBigQuerySQLComponent> { /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client for the endpoints that do not set their own connectionFactory. * * The option is a: * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -93,7 +93,8 @@ public interface GoogleBigquerySqlComponentBuilderFactory { } /** - * Google Cloud Project Id. + * The ID of a Google Cloud project. Not used: an endpoint takes the + * project ID from its URI. * * 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 c4e8f33e25a7..c6f5884ea64c 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 @@ -1605,7 +1605,7 @@ public class EndpointHeaderBuilders { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -1618,7 +1618,7 @@ public class EndpointHeaderBuilders { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 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 ca9523770b3f..044cfde1bb75 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 @@ -6764,7 +6764,7 @@ public class StaticEndpointBuilders { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -6773,13 +6773,16 @@ public class StaticEndpointBuilders { * Syntax: <code>google-bigquery:projectId:datasetId:tableId</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project of the dataset. The endpoint sets it + * as the project of the BigQuery client that it creates. * * Path parameter: datasetId (required) - * BigQuery Dataset Id + * The ID of the BigQuery dataset that holds the table. * * Path parameter: tableId - * BigQuery table id + * The ID of the table to insert the rows into. The + * CamelGoogleBigQueryTableId header replaces it. If neither is set, the + * exchange fails. * * @param path projectId:datasetId:tableId * @return the dsl builder @@ -6789,7 +6792,7 @@ public class StaticEndpointBuilders { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -6798,13 +6801,16 @@ public class StaticEndpointBuilders { * Syntax: <code>google-bigquery:projectId:datasetId:tableId</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project of the dataset. The endpoint sets it + * as the project of the BigQuery client that it creates. * * Path parameter: datasetId (required) - * BigQuery Dataset Id + * The ID of the BigQuery dataset that holds the table. * * Path parameter: tableId - * BigQuery table id + * The ID of the table to insert the rows into. The + * CamelGoogleBigQueryTableId header replaces it. If neither is set, the + * exchange fails. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -6816,7 +6822,7 @@ public class StaticEndpointBuilders { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -6825,10 +6831,16 @@ public class StaticEndpointBuilders { * Syntax: <code>google-bigquery-sql:projectId:queryString</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project that runs the query jobs. The endpoint + * also sets it as the project of the BigQuery client that it creates. * * Path parameter: queryString (required) - * BigQuery standard SQL query + * The GoogleSQL (standard SQL) query or statement to run, or a resource + * with the query, such as classpath:query.sql, loaded when the producer + * starts. A named query parameter takes its value from the entry of that + * name of a Map body, else from the header of that name, and a ${name} + * placeholder is replaced by the text of the header or exchange property of + * that name. * This option can also be loaded from an existing file, by prefixing with * file: or classpath: followed by the location of the file. * @@ -6840,7 +6852,7 @@ public class StaticEndpointBuilders { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -6849,10 +6861,16 @@ public class StaticEndpointBuilders { * Syntax: <code>google-bigquery-sql:projectId:queryString</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project that runs the query jobs. The endpoint + * also sets it as the project of the BigQuery client that it creates. * * Path parameter: queryString (required) - * BigQuery standard SQL query + * The GoogleSQL (standard SQL) query or statement to run, or a resource + * with the query, such as classpath:query.sql, loaded when the producer + * starts. A named query parameter takes its value from the entry of that + * name of a Map body, else from the header of that name, and a ${name} + * placeholder is replaced by the text of the header or exchange property of + * that name. * This option can also be loaded from an existing file, by prefixing with * file: or classpath: followed by the location of the file. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java index 1e1d316c5636..04e092000f83 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQueryEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Generated by camel build tools - do NOT edit this file! */ @@ -45,8 +45,8 @@ public interface GoogleBigQueryEndpointBuilderFactory { } /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client. If not set, the connectionFactory of the component is used, and if that is not set either, the endpoint creates one from the serviceAccountKey and projectId options. With a factory that is set, the rows go to the dataset in the default project of its client. * * The option is a: * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -61,8 +61,8 @@ public interface GoogleBigQueryEndpointBuilderFactory { return this; } /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client. If not set, the connectionFactory of the component is used, and if that is not set either, the endpoint creates one from the serviceAccountKey and projectId options. With a factory that is set, the rows go to the dataset in the default project of its client. * * The option will be converted to a * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -77,7 +77,10 @@ public interface GoogleBigQueryEndpointBuilderFactory { return this; } /** - * Field name to use as insert id. + * The name of the field of each row whose value is the insert ID of the + * row, which BigQuery uses to drop duplicate rows on a best-effort + * basis. It applies to a Map body and to each Map of a List body. When + * set, the CamelGoogleBigQueryInsertId header is not used. * * The option is a: <code>java.lang.String</code> type. * @@ -91,8 +94,11 @@ public interface GoogleBigQueryEndpointBuilderFactory { return this; } /** - * Service account key in json format to authenticate an application as - * a service account to google cloud platform. + * The location of the JSON key file of the service account to + * authenticate with Google Cloud, such as a classpath:, file: or https: + * resource, or base64: followed by the Base64 encoded content of the + * file. If not set, Application Default Credentials are used. It is not + * used when a connectionFactory is set. * * The option is a: <code>java.lang.String</code> type. * @@ -168,7 +174,7 @@ public interface GoogleBigQueryEndpointBuilderFactory { public interface GoogleBigQueryBuilders { /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -181,7 +187,7 @@ public interface GoogleBigQueryEndpointBuilderFactory { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -190,13 +196,16 @@ public interface GoogleBigQueryEndpointBuilderFactory { * Syntax: <code>google-bigquery:projectId:datasetId:tableId</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project of the dataset. The endpoint sets + * it as the project of the BigQuery client that it creates. * * Path parameter: datasetId (required) - * BigQuery Dataset Id + * The ID of the BigQuery dataset that holds the table. * * Path parameter: tableId - * BigQuery table id + * The ID of the table to insert the rows into. The + * CamelGoogleBigQueryTableId header replaces it. If neither is set, the + * exchange fails. * * @param path projectId:datasetId:tableId * @return the dsl builder @@ -206,7 +215,7 @@ public interface GoogleBigQueryEndpointBuilderFactory { } /** * Google BigQuery (camel-google-bigquery) - * Google BigQuery data warehouse for analytics. + * Insert rows into Google BigQuery tables. * * Category: cloud,bigdata * Since: 2.20 @@ -215,13 +224,16 @@ public interface GoogleBigQueryEndpointBuilderFactory { * Syntax: <code>google-bigquery:projectId:datasetId:tableId</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project of the dataset. The endpoint sets + * it as the project of the BigQuery client that it creates. * * Path parameter: datasetId (required) - * BigQuery Dataset Id + * The ID of the BigQuery dataset that holds the table. * * Path parameter: tableId - * BigQuery table id + * The ID of the table to insert the rows into. The + * CamelGoogleBigQueryTableId header replaces it. If neither is set, the + * exchange fails. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -244,7 +256,9 @@ public interface GoogleBigQueryEndpointBuilderFactory { public static final GoogleBigQueryHeaderNameBuilder INSTANCE = new GoogleBigQueryHeaderNameBuilder(); /** - * Table suffix to use when inserting data. + * The suffix of a template table: BigQuery inserts the rows into the + * table whose ID is the table ID followed by this suffix, and creates + * it with the schema of the table ID table if it does not exist. * * The option is a: {@code String} type. * @@ -256,8 +270,9 @@ public interface GoogleBigQueryEndpointBuilderFactory { return "CamelGoogleBigQueryTableSuffix"; } /** - * Table id where data will be submitted. If specified will override - * endpoint configuration. + * The ID of the table to insert the rows into. It replaces the tableId + * of the endpoint. In a grouped exchange, an exchange without this + * header goes to the table of the exchange before it. * * The option is a: {@code String} type. * @@ -269,7 +284,9 @@ public interface GoogleBigQueryEndpointBuilderFactory { return "CamelGoogleBigQueryTableId"; } /** - * InsertId to use when inserting data. + * The insert ID of the row of a Map body, which BigQuery uses to drop + * duplicate rows on a best-effort basis. It is not used for a List + * body, nor when the useAsInsertId option is set. * * The option is a: {@code String} type. * @@ -281,7 +298,9 @@ public interface GoogleBigQueryEndpointBuilderFactory { return "CamelGoogleBigQueryInsertId"; } /** - * Partition decorator to indicate partition to use when inserting data. + * The partition of a partitioned table to insert the rows into, such as + * 20260131 for a day. The producer appends it to the table ID as + * table$partition. * * The option is a: {@code String} type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java index 77d4a1f0ab14..4dfcfb2002f9 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GoogleBigQuerySQLEndpointBuilderFactory.java @@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Generated by camel build tools - do NOT edit this file! */ @@ -45,8 +45,8 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { } /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client. If not set, the connectionFactory of the component is used, and if that is not set either, the endpoint creates one from the serviceAccountKey and projectId options. * * The option is a: * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -61,8 +61,8 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * ConnectionFactory to obtain connection to Bigquery Service. If not - * provided the default one will be used. + * The + * org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory that provides the BigQuery client. If not set, the connectionFactory of the component is used, and if that is not set either, the endpoint creates one from the serviceAccountKey and projectId options. * * The option will be converted to a * <code>org.apache.camel.component.google.bigquery.GoogleBigQueryConnectionFactory</code> type. @@ -77,7 +77,11 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Output mode type for select queries. + * How the producer returns the rows of a SELECT. SELECT_LIST returns + * one page as a List of Maps, with the CamelGoogleBigQueryNextPageToken + * and CamelGoogleBigQueryJobId headers. STREAM_LIST returns an Iterator + * of Maps that fetches all the pages while it is read, and sets no + * header. * * The option is a: * <code>org.apache.camel.component.google.bigquery.sql.OutputType</code> type. @@ -93,7 +97,11 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Output mode type for select queries. + * How the producer returns the rows of a SELECT. SELECT_LIST returns + * one page as a List of Maps, with the CamelGoogleBigQueryNextPageToken + * and CamelGoogleBigQueryJobId headers. STREAM_LIST returns an Iterator + * of Maps that fetches all the pages while it is read, and sets no + * header. * * The option will be converted to a * <code>org.apache.camel.component.google.bigquery.sql.OutputType</code> type. @@ -109,7 +117,8 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Size of a page to request. Unset by default. + * The maximum number of rows in a page of SELECT results. With 0 or + * less, BigQuery chooses the page size. * * The option is a: <code>long</code> type. * @@ -124,7 +133,8 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Size of a page to request. Unset by default. + * The maximum number of rows in a page of SELECT results. With 0 or + * less, BigQuery chooses the page size. * * The option will be converted to a <code>long</code> type. * @@ -139,8 +149,10 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Page token, returned by a previous call, to request the next page of - * results. + * The token of the page of SELECT results to return, from the + * CamelGoogleBigQueryNextPageToken header of a previous call. If not + * set, the first page is returned. The CamelGoogleBigQueryPageToken + * header replaces it. * * The option is a: <code>java.lang.String</code> type. * @@ -154,8 +166,11 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return this; } /** - * Service account key in json format to authenticate an application as - * a service account to google cloud platform. + * The location of the JSON key file of the service account to + * authenticate with Google Cloud, such as a classpath:, file: or https: + * resource, or base64: followed by the Base64 encoded content of the + * file. If not set, Application Default Credentials are used. It is not + * used when a connectionFactory is set. * * The option is a: <code>java.lang.String</code> type. * @@ -231,7 +246,7 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { public interface GoogleBigQuerySQLBuilders { /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -244,7 +259,7 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -253,10 +268,17 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { * Syntax: <code>google-bigquery-sql:projectId:queryString</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project that runs the query jobs. The + * endpoint also sets it as the project of the BigQuery client that it + * creates. * * Path parameter: queryString (required) - * BigQuery standard SQL query + * The GoogleSQL (standard SQL) query or statement to run, or a resource + * with the query, such as classpath:query.sql, loaded when the producer + * starts. A named query parameter takes its value from the entry of + * that name of a Map body, else from the header of that name, and a + * ${name} placeholder is replaced by the text of the header or exchange + * property of that name. * This option can also be loaded from an existing file, by prefixing * with file: or classpath: followed by the location of the file. * @@ -268,7 +290,7 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { } /** * Google BigQuery Standard SQL (camel-google-bigquery) - * Access Google Cloud BigQuery service using SQL queries. + * Run SQL queries and statements in Google BigQuery. * * Category: cloud,messaging * Since: 2.23 @@ -277,10 +299,17 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { * Syntax: <code>google-bigquery-sql:projectId:queryString</code> * * Path parameter: projectId (required) - * Google Cloud Project Id + * The ID of the Google Cloud project that runs the query jobs. The + * endpoint also sets it as the project of the BigQuery client that it + * creates. * * Path parameter: queryString (required) - * BigQuery standard SQL query + * The GoogleSQL (standard SQL) query or statement to run, or a resource + * with the query, such as classpath:query.sql, loaded when the producer + * starts. A named query parameter takes its value from the entry of + * that name of a Map body, else from the header of that name, and a + * ${name} placeholder is replaced by the text of the header or exchange + * property of that name. * This option can also be loaded from an existing file, by prefixing * with file: or classpath: followed by the location of the file. * @@ -305,7 +334,8 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { public static final GoogleBigQuerySQLHeaderNameBuilder INSTANCE = new GoogleBigQuerySQLHeaderNameBuilder(); /** - * Preprocessed query text. + * The query that the producer sends to BigQuery, after it has replaced + * the ${name} placeholders. The producer sets it. * * The option is a: {@code String} type. * @@ -317,7 +347,10 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return "CamelGoogleBigQueryTranslatedQuery"; } /** - * A custom JobId to use. + * The ID of a query job. When set, the producer does not run the query + * but waits for this job and returns its result, for example to read + * the next page with the CamelGoogleBigQueryPageToken header. The + * producer sets it after a SELECT with the SELECT_LIST output type. * * The option is a: {@code com.google.cloud.bigquery.JobId} type. * @@ -329,8 +362,11 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return "CamelGoogleBigQueryJobId"; } /** - * The page token to retrieve a specific page of results from BigQuery. - * If not set, the first page is returned. + * The token of the page of SELECT results to return, from the + * CamelGoogleBigQueryNextPageToken header of a previous call. It + * replaces the pageToken option. Send it with the + * CamelGoogleBigQueryJobId header of that call, so the page is read + * from the same job. * * The option is a: {@code String} type. * @@ -342,9 +378,9 @@ public interface GoogleBigQuerySQLEndpointBuilderFactory { return "CamelGoogleBigQueryPageToken"; } /** - * The next page token returned by BigQuery. Use this token in the - * CamelGoogleBigQueryPageToken header of a subsequent request to - * retrieve the next page of results. + * The token of the next page of SELECT results, or null for the last + * page. The producer sets it with the SELECT_LIST output type. Send it + * in the CamelGoogleBigQueryPageToken header to read the next page. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index f1901a422438..af66eb1acdae 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -183,7 +183,7 @@ or removes its row. | camel-geocoder | geocoder | yes | | camel-git | git | yes | | camel-github2 | github2 | | -| camel-google-bigquery | google-bigquery, google-bigquery-sql | | +| camel-google-bigquery | google-bigquery, google-bigquery-sql | yes | | camel-google-calendar | google-calendar, google-calendar-stream | | | camel-google-drive | google-drive | | | camel-google-firestore | google-firestore | yes |
