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
The following commit(s) were added to refs/heads/main by this push:
new 2355fad513ad CAMEL-23832: camel-cassandraql - improve the component
and option descriptions (#30937)
2355fad513ad is described below
commit 2355fad513ad4122077cdf516e870980d7edc244
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:52:48 2026 +0100
CAMEL-23832: camel-cassandraql - improve the component and option
descriptions (#30937)
This commit rewrites the component description and the texts of 14 endpoint
options and 2 headers of cql. The new
texts say which options apply only to the session that the endpoint creates
from the hosts, and what the session and
bean options replace. The CamelCqlResumeAction text now says that it is the
registry name of the resume action, not a
message header, and the clusterName text says that the option is not used.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-cassandraql 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]>
---
.../org/apache/camel/catalog/components/cql.json | 34 +--
.../apache/camel/catalog/docs/cql-component.adoc | 2 +-
.../org/apache/camel/component/cassandra/cql.json | 34 +--
.../src/main/docs/cql-component.adoc | 2 +-
.../component/cassandra/CassandraConstants.java | 15 +-
.../component/cassandra/CassandraEndpoint.java | 115 ++++----
.../component/ComponentsBuilderFactory.java | 3 +-
.../component/dsl/CqlComponentBuilderFactory.java | 6 +-
.../builder/endpoint/EndpointHeaderBuilders.java | 3 +-
.../builder/endpoint/StaticEndpointBuilders.java | 42 ++-
.../dsl/CassandraEndpointBuilderFactory.java | 299 +++++++++++++++------
tasks/component-descriptions.md | 2 +-
12 files changed, 343 insertions(+), 214 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
index d3927c614e7f..fc59690e5475 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/cql.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "cql",
"title": "Cassandra CQL",
- "description": "Integrate with Cassandra 2.0+ using the CQL3 API (not the
Thrift API). Based on Cassandra Java Driver provided by DataStax.",
+ "description": "Query and update an Apache Cassandra database with CQL
statements.",
"deprecated": false,
"firstVersion": "2.15.0",
"label": "database,bigdata",
@@ -29,8 +29,8 @@
"autowiredEnabled": { "index": 2, "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": {
- "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL query to execute.", "constantName":
"org.apache.camel.component.cassandra.CassandraConstants#CQL_QUERY" },
- "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The resume action to execute when resuming.", "constantName":
"org.apache.camel.component.cassandra.CassandraConstants#CASSANDRA_RESUME_ACTION"
}
+ "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL statement that the producer executes instead of the cql
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An
empty String uses the cql option. With prepareStatements, the statement is
prepared for each message.", "constantName": [...]
+ "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Not a message header: the name of the
org.apache.camel.resume.ResumeAction bean that the consumer looks up in the
registry when it starts with a resume strategy whose adapter takes a resume
action.", "constantName": "org.apache.camel.component.cassandra.Ca [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "list" ], "dependsOn": [
"resultSetConversionStrategy" ], "byOption": [ { "option":
"resultSetConversionStrategy", "value": "ONE", "carriers": [ "pojo", "null" ],
"javaType": "com.datastax.oss.driver.api.core.cql.Row" } ], "description": "One
message per poll with the rows of the cql query: a List of the Row of the
Cassandra driver, empty when there is none. ONE gives the first Row or null,
LIMIT_n a List of at most n rows" },
@@ -38,24 +38,24 @@
"producerOut": { "carriers": [ "list" ], "dependsOn": [
"resultSetConversionStrategy" ], "byOption": [ { "option":
"resultSetConversionStrategy", "value": "ONE", "carriers": [ "pojo", "null" ],
"javaType": "com.datastax.oss.driver.api.core.cql.Row" } ], "description": "The
rows: a List of the Row of the Cassandra driver, empty for an insert, update or
delete. ONE gives the first Row or null, LIMIT_n a List of at most n rows" }
},
"properties": {
- "beanRef": { "index": 0, "kind": "path", "displayName": "Bean Ref",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "beanRef is defined using bean:id" },
- "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Hostname(s) Cassandra server(s). Multiple hosts can be
separated by comma." },
- "port": { "index": 2, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "Port number of Cassandra server(s)" },
- "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Keyspace to use" },
- "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Cluster name" },
- "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "CQL query to perform. Can be overridden with the message header
with key CamelCqlQuery." },
- "datacenter": { "index": 6, "kind": "parameter", "displayName":
"Datacenter", "group": "common", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "datacenter1", "description":
"Datacenter to use" },
- "prepareStatements": { "index": 7, "kind": "parameter", "displayName":
"Prepare Statements", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether to use
PreparedStatements or regular Statements" },
+ "beanRef": { "index": 0, "kind": "path", "displayName": "Bean Ref",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of a
com.datastax.oss.driver.api.core.CqlSession in the registry, written as
bean:name in the URI. The endpoint uses the keyspace of this session, not the
keyspace in the URI, and does not close the session. The session option
replaces it." },
+ "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The host names or IP addresses of the Cassandra nodes that the
driver contacts first, separated by commas. When neither the session option nor
a bean is set, the endpoint creates a session from them and closes it when it
stops." },
+ "port": { "index": 2, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The port of the CQL native protocol, the same for all the nodes
in the hosts. If not set, 9042 is used." },
+ "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keyspace of the session that the endpoint
creates from the hosts, so that the CQL can name tables without their keyspace.
It is not used with the session option or a bean." },
+ "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Not used: the component does not pass this
value to the driver." },
+ "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL statement that the consumer executes at each poll, and
that the producer executes when the CamelCqlQuery header is not set. The
producer binds the values of the ? or :name markers from the message body." },
+ "datacenter": { "index": 6, "kind": "parameter", "displayName":
"Datacenter", "group": "common", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "datacenter1", "description": "The name
of the local datacenter, whose nodes the default load balancing policy of the
driver sends the requests to. Used only for the session that the endpoint
creates from the hosts." },
+ "prepareStatements": { "index": 7, "kind": "parameter", "displayName":
"Prepare Statements", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether to
execute the CQL as a prepared statement. The cql option is prepared once when
the consumer or producer starts, and a CQL from the CamelCqlQuery header is
prepared for each message. If false, the [...]
"sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 10, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
"exchangePattern": { "index": 11, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 13, "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 produ [...]
- "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName":
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a specific comma
separated list of Extra Type codecs. Possible values are: BLOB_TO_ARRAY,
BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY, FLOAT_LIST_T [...]
- "loadBalancingPolicyClass": { "index": 15, "kind": "parameter",
"displayName": "Load Balancing Policy Class", "group": "advanced", "label":
"advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "To use a specific LoadBalancingPolicyClass" },
- "resultSetConversionStrategy": { "index": 16, "kind": "parameter",
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label":
"advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.component.cassandra.ResultSetConversionStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "To
use a custom class that implements logic for converting ResultSet into message
body ALL, ONE, LIMIT_10, LIMIT_100..." },
- "session": { "index": 17, "kind": "parameter", "displayName": "Session",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false,
"autowired": false, "secret": false, "description": "To use the Session
instance (you would normally not use this option)" },
+ "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName":
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The extra codecs of the
driver (from its ExtraTypeCodecs class) to register, separated by commas:
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
+ "loadBalancingPolicyClass": { "index": 15, "kind": "parameter",
"displayName": "Load Balancing Policy Class", "group": "advanced", "label":
"advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The class of the load balancing policy of the driver (its
basic.load-balancing-policy.class setting). A class name without a package,
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
+ "resultSetConversionStrategy": { "index": 16, "kind": "parameter",
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label":
"advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.component.cassandra.ResultSetConversionStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "How
the rows of the result become the message body: ALL for a List of all the
com.datastax.oss.driver.api.core.cql.Row objects (the default [...]
+ "session": { "index": 17, "kind": "parameter", "displayName": "Session",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not
create a session from the hosts or look up a bean, and does not close this
session. The options for creating a [...]
"backoffErrorThreshold": { "index": 18, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 19, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 20, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -71,7 +71,7 @@
"startScheduler": { "index": 30, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 31, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 32, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "password": { "index": 33, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Password for session
authentication" },
- "username": { "index": 34, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Username for session
authentication" }
+ "password": { "index": 33, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The password for plain
text authentication with the Cassandra nodes. Used only together with the
username option, and only for the session that the endpoint creates from the
hosts." },
+ "username": { "index": 34, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The user name for plain
text authentication with the Cassandra nodes. Used only together with the
password option, and only for the session that the endpoint creates from the
hosts." }
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cql-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cql-component.adoc
index 7e3eb397619a..b9118a4cf4ed 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cql-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cql-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Cassandra CQL
:shortname: cql
:artifactid: camel-cassandraql
-:description: Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift
API). Based on Cassandra Java Driver provided by DataStax.
+:description: Query and update an Apache Cassandra database with CQL
statements.
:since: 2.15
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
b/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
index d3927c614e7f..fc59690e5475 100644
---
a/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
+++
b/components/camel-cassandraql/src/generated/resources/META-INF/org/apache/camel/component/cassandra/cql.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "cql",
"title": "Cassandra CQL",
- "description": "Integrate with Cassandra 2.0+ using the CQL3 API (not the
Thrift API). Based on Cassandra Java Driver provided by DataStax.",
+ "description": "Query and update an Apache Cassandra database with CQL
statements.",
"deprecated": false,
"firstVersion": "2.15.0",
"label": "database,bigdata",
@@ -29,8 +29,8 @@
"autowiredEnabled": { "index": 2, "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": {
- "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL query to execute.", "constantName":
"org.apache.camel.component.cassandra.CassandraConstants#CQL_QUERY" },
- "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The resume action to execute when resuming.", "constantName":
"org.apache.camel.component.cassandra.CassandraConstants#CASSANDRA_RESUME_ACTION"
}
+ "CamelCqlQuery": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL statement that the producer executes instead of the cql
option: a String, or a com.datastax.oss.driver.api.core.cql.SimpleStatement. An
empty String uses the cql option. With prepareStatements, the statement is
prepared for each message.", "constantName": [...]
+ "CamelCqlResumeAction": { "index": 1, "kind": "header", "displayName": "",
"group": "consumer", "label": "consumer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Not a message header: the name of the
org.apache.camel.resume.ResumeAction bean that the consumer looks up in the
registry when it starts with a resume strategy whose adapter takes a resume
action.", "constantName": "org.apache.camel.component.cassandra.Ca [...]
},
"bodyTypes": {
"consumerOut": { "carriers": [ "list" ], "dependsOn": [
"resultSetConversionStrategy" ], "byOption": [ { "option":
"resultSetConversionStrategy", "value": "ONE", "carriers": [ "pojo", "null" ],
"javaType": "com.datastax.oss.driver.api.core.cql.Row" } ], "description": "One
message per poll with the rows of the cql query: a List of the Row of the
Cassandra driver, empty when there is none. ONE gives the first Row or null,
LIMIT_n a List of at most n rows" },
@@ -38,24 +38,24 @@
"producerOut": { "carriers": [ "list" ], "dependsOn": [
"resultSetConversionStrategy" ], "byOption": [ { "option":
"resultSetConversionStrategy", "value": "ONE", "carriers": [ "pojo", "null" ],
"javaType": "com.datastax.oss.driver.api.core.cql.Row" } ], "description": "The
rows: a List of the Row of the Cassandra driver, empty for an insert, update or
delete. ONE gives the first Row or null, LIMIT_n a List of at most n rows" }
},
"properties": {
- "beanRef": { "index": 0, "kind": "path", "displayName": "Bean Ref",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "beanRef is defined using bean:id" },
- "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "Hostname(s) Cassandra server(s). Multiple hosts can be
separated by comma." },
- "port": { "index": 2, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "Port number of Cassandra server(s)" },
- "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Keyspace to use" },
- "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Cluster name" },
- "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "CQL query to perform. Can be overridden with the message header
with key CamelCqlQuery." },
- "datacenter": { "index": 6, "kind": "parameter", "displayName":
"Datacenter", "group": "common", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "datacenter1", "description":
"Datacenter to use" },
- "prepareStatements": { "index": 7, "kind": "parameter", "displayName":
"Prepare Statements", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether to use
PreparedStatements or regular Statements" },
+ "beanRef": { "index": 0, "kind": "path", "displayName": "Bean Ref",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The name of a
com.datastax.oss.driver.api.core.CqlSession in the registry, written as
bean:name in the URI. The endpoint uses the keyspace of this session, not the
keyspace in the URI, and does not close the session. The session option
replaces it." },
+ "hosts": { "index": 1, "kind": "path", "displayName": "Hosts", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The host names or IP addresses of the Cassandra nodes that the
driver contacts first, separated by commas. When neither the session option nor
a bean is set, the endpoint creates a session from them and closes it when it
stops." },
+ "port": { "index": 2, "kind": "path", "displayName": "Port", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"description": "The port of the CQL native protocol, the same for all the nodes
in the hosts. If not set, 9042 is used." },
+ "keyspace": { "index": 3, "kind": "path", "displayName": "Keyspace",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "The keyspace of the session that the endpoint
creates from the hosts, so that the CQL can name tables without their keyspace.
It is not used with the session option or a bean." },
+ "clusterName": { "index": 4, "kind": "parameter", "displayName": "Cluster
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "description": "Not used: the component does not pass this
value to the driver." },
+ "cql": { "index": 5, "kind": "parameter", "displayName": "Cql", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The CQL statement that the consumer executes at each poll, and
that the producer executes when the CamelCqlQuery header is not set. The
producer binds the values of the ? or :name markers from the message body." },
+ "datacenter": { "index": 6, "kind": "parameter", "displayName":
"Datacenter", "group": "common", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": "datacenter1", "description": "The name
of the local datacenter, whose nodes the default load balancing policy of the
driver sends the requests to. Used only for the session that the endpoint
creates from the hosts." },
+ "prepareStatements": { "index": 7, "kind": "parameter", "displayName":
"Prepare Statements", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired":
false, "secret": false, "defaultValue": true, "description": "Whether to
execute the CQL as a prepared statement. The cql option is prepared once when
the consumer or producer starts, and a CQL from the CamelCqlQuery header is
prepared for each message. If false, the [...]
"sendEmptyMessageWhenIdle": { "index": 8, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 9, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 10, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By de [...]
"exchangePattern": { "index": 11, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 12, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 13, "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 produ [...]
- "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName":
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a specific comma
separated list of Extra Type codecs. Possible values are: BLOB_TO_ARRAY,
BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY, FLOAT_LIST_T [...]
- "loadBalancingPolicyClass": { "index": 15, "kind": "parameter",
"displayName": "Load Balancing Policy Class", "group": "advanced", "label":
"advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "To use a specific LoadBalancingPolicyClass" },
- "resultSetConversionStrategy": { "index": 16, "kind": "parameter",
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label":
"advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.component.cassandra.ResultSetConversionStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "To
use a custom class that implements logic for converting ResultSet into message
body ALL, ONE, LIMIT_10, LIMIT_100..." },
- "session": { "index": 17, "kind": "parameter", "displayName": "Session",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false,
"autowired": false, "secret": false, "description": "To use the Session
instance (you would normally not use this option)" },
+ "extraTypeCodecs": { "index": 14, "kind": "parameter", "displayName":
"Extra Type Codecs", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The extra codecs of the
driver (from its ExtraTypeCodecs class) to register, separated by commas:
BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARR [...]
+ "loadBalancingPolicyClass": { "index": 15, "kind": "parameter",
"displayName": "Load Balancing Policy Class", "group": "advanced", "label":
"advanced", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The class of the load balancing policy of the driver (its
basic.load-balancing-policy.class setting). A class name without a package,
such as DcInferringLoadBalancingPolicy, is one of the polic [...]
+ "resultSetConversionStrategy": { "index": 16, "kind": "parameter",
"displayName": "Result Set Conversion Strategy", "group": "advanced", "label":
"advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.component.cassandra.ResultSetConversionStrategy",
"deprecated": false, "autowired": false, "secret": false, "description": "How
the rows of the result become the message body: ALL for a List of all the
com.datastax.oss.driver.api.core.cql.Row objects (the default [...]
+ "session": { "index": 17, "kind": "parameter", "displayName": "Session",
"group": "advanced", "label": "advanced", "required": false, "type": "object",
"javaType": "com.datastax.oss.driver.api.core.CqlSession", "deprecated": false,
"autowired": false, "secret": false, "description": "To use a custom
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not
create a session from the hosts or look up a bean, and does not close this
session. The options for creating a [...]
"backoffErrorThreshold": { "index": 18, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 19, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 20, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -71,7 +71,7 @@
"startScheduler": { "index": 30, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 31, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 32, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "password": { "index": 33, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Password for session
authentication" },
- "username": { "index": 34, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Username for session
authentication" }
+ "password": { "index": 33, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The password for plain
text authentication with the Cassandra nodes. Used only together with the
username option, and only for the session that the endpoint creates from the
hosts." },
+ "username": { "index": 34, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The user name for plain
text authentication with the Cassandra nodes. Used only together with the
password option, and only for the session that the endpoint creates from the
hosts." }
}
}
diff --git a/components/camel-cassandraql/src/main/docs/cql-component.adoc
b/components/camel-cassandraql/src/main/docs/cql-component.adoc
index 7e3eb397619a..b9118a4cf4ed 100644
--- a/components/camel-cassandraql/src/main/docs/cql-component.adoc
+++ b/components/camel-cassandraql/src/main/docs/cql-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Cassandra CQL
:shortname: cql
:artifactid: camel-cassandraql
-:description: Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift
API). Based on Cassandra Java Driver provided by DataStax.
+:description: Query and update an Apache Cassandra database with CQL
statements.
:since: 2.15
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
index 1886309b7588..4ca038f52200 100644
---
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
+++
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraConstants.java
@@ -23,13 +23,18 @@ import org.apache.camel.spi.Metadata;
*/
public final class CassandraConstants {
- /**
- * In Message header: CQL Query
- */
- @Metadata(label = "producer", description = "The CQL query to execute.",
javaType = "String")
+ @Metadata(label = "producer",
+ description = "The CQL statement that the producer executes
instead of the cql option: a String, or a"
+ + "
com.datastax.oss.driver.api.core.cql.SimpleStatement. An empty String uses the
cql option."
+ + " With prepareStatements, the statement is
prepared for each message.",
+ javaType = "String")
public static final String CQL_QUERY = "CamelCqlQuery";
- @Metadata(label = "consumer", description = "The resume action to execute
when resuming.", javaType = "String")
+ @Metadata(label = "consumer",
+ description = "Not a message header: the name of the
org.apache.camel.resume.ResumeAction bean that the"
+ + " consumer looks up in the registry when it
starts with a resume strategy whose adapter takes"
+ + " a resume action.",
+ javaType = "String")
public static final String CASSANDRA_RESUME_ACTION =
"CamelCqlResumeAction";
private CassandraConstants() {
diff --git
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
index 421e5bf8ad35..40287c48c146 100644
---
a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
+++
b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraEndpoint.java
@@ -50,8 +50,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
Based on Cassandra Java Driver provided by
- * DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*/
@UriEndpoint(firstVersion = "2.15.0", scheme = "cql", title = "Cassandra CQL",
syntax = "cql:beanRef:hosts:port/keyspace",
category = { Category.DATABASE, Category.BIGDATA }, headersClass
= CassandraConstants.class)
@@ -82,34 +81,70 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
// whether the endpoint created the session from its hosts (and so closes
it when it stops)
private boolean createdSession;
- @UriPath(description = "beanRef is defined using bean:id")
+ @UriPath(description = "The name of a
com.datastax.oss.driver.api.core.CqlSession in the registry, written as
bean:name"
+ + " in the URI. The endpoint uses the keyspace of
this session, not the keyspace in the URI, and"
+ + " does not close the session. The session option
replaces it.")
private String beanRef;
- @UriPath
+ @UriPath(description = "The host names or IP addresses of the Cassandra
nodes that the driver contacts first, separated"
+ + " by commas. When neither the session option nor
a bean is set, the endpoint creates a session"
+ + " from them and closes it when it stops.")
private String hosts;
- @UriPath
+ @UriPath(description = "The port of the CQL native protocol, the same for
all the nodes in the hosts. If not set, 9042 is"
+ + " used.")
private Integer port;
- @UriPath
+ @UriPath(description = "The keyspace of the session that the endpoint
creates from the hosts, so that the CQL can name"
+ + " tables without their keyspace. It is not used
with the session option or a bean.")
private String keyspace;
- @UriParam(defaultValue = "datacenter1")
+ @UriParam(defaultValue = "datacenter1",
+ description = "The name of the local datacenter, whose nodes the
default load balancing policy of the driver"
+ + " sends the requests to. Used only for the
session that the endpoint creates from the hosts.")
private String datacenter = "datacenter1";
- @UriParam
+ @UriParam(description = "The CQL statement that the consumer executes at
each poll, and that the producer executes when"
+ + " the CamelCqlQuery header is not set. The
producer binds the values of the ? or :name markers"
+ + " from the message body.")
private String cql;
- @UriParam(defaultValue = "true")
+ @UriParam(defaultValue = "true",
+ description = "Whether to execute the CQL as a prepared
statement. The cql option is prepared once when the"
+ + " consumer or producer starts, and a CQL from
the CamelCqlQuery header is prepared for each"
+ + " message. If false, the CQL is sent as a simple
statement each time.")
private boolean prepareStatements = true;
- @UriParam
+ @UriParam(description = "Not used: the component does not pass this value
to the driver.")
private String clusterName;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The user name for plain text authentication with
the Cassandra nodes. Used only together with"
+ + " the password option, and only for the session
that the endpoint creates from the hosts.")
private String username;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The password for plain text authentication with
the Cassandra nodes. Used only together with"
+ + " the username option, and only for the session
that the endpoint creates from the hosts.")
private String password;
- @UriParam(label = "advanced")
+ @UriParam(label = "advanced",
+ description = "To use a custom
com.datastax.oss.driver.api.core.CqlSession. When set, the endpoint does not"
+ + " create a session from the hosts or look up a
bean, and does not close this session. The"
+ + " options for creating a session, such as
keyspace, datacenter, username and password, are not"
+ + " used.")
private CqlSession session;
private DefaultConsistencyLevel consistencyLevel;
- @UriParam(label = "advanced")
+ @UriParam(label = "advanced",
+ description = "The class of the load balancing policy of the
driver (its basic.load-balancing-policy.class"
+ + " setting). A class name without a package, such
as DcInferringLoadBalancingPolicy, is one of"
+ + " the policies of the driver; if not set, the
driver uses DefaultLoadBalancingPolicy. Used only"
+ + " for the session that the endpoint creates from
the hosts.")
private String loadBalancingPolicyClass;
- @UriParam(label = "advanced")
+ @UriParam(label = "advanced",
+ description = "How the rows of the result become the message
body: ALL for a List of all the"
+ + " com.datastax.oss.driver.api.core.cql.Row
objects (the default), ONE for the first Row or"
+ + " null, LIMIT_n, such as LIMIT_10, for a List of
at most n rows. A custom"
+ + "
org.apache.camel.component.cassandra.ResultSetConversionStrategy can be set
instead.")
private ResultSetConversionStrategy resultSetConversionStrategy =
ResultSetConversionStrategies.all();
- @UriParam(label = "advanced")
+ @UriParam(label = "advanced",
+ description = "The extra codecs of the driver (from its
ExtraTypeCodecs class) to register, separated by"
+ + " commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,"
+ + " INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY,
FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY,"
+ + " TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM,
TIMESTAMP_MILLIS_UTC, ZONED_TIMESTAMP_SYSTEM,"
+ + " ZONED_TIMESTAMP_UTC,
ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or"
+ + " LOCAL_TIMESTAMP_UTC. An unknown name is
ignored. Used only for the session that the endpoint"
+ + " creates from the hosts.")
private String extraTypeCodecs;
public CassandraEndpoint(String endpointUri, Component component) {
@@ -272,10 +307,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return beanRef;
}
- /**
- * Instead of using a hostname:port, refer to an existing configured
Session or Cluster from the Camel registry to
- * be used.
- */
public void setBean(String beanRef) {
this.beanRef = beanRef;
}
@@ -294,9 +325,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return hosts;
}
- /**
- * Hostname(s) Cassandra server(s). Multiple hosts can be separated by
comma.
- */
public void setHosts(String hosts) {
this.hosts = hosts;
}
@@ -305,9 +333,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return port;
}
- /**
- * Port number of Cassandra server(s)
- */
public void setPort(Integer port) {
this.port = port;
}
@@ -316,9 +341,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return keyspace;
}
- /**
- * Keyspace to use
- */
public void setKeyspace(String keyspace) {
this.keyspace = keyspace;
}
@@ -327,9 +349,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return datacenter;
}
- /**
- * Datacenter to use
- */
public void setDatacenter(String datacenter) {
this.datacenter = datacenter;
}
@@ -338,9 +357,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return cql;
}
- /**
- * CQL query to perform. Can be overridden with the message header with
key CamelCqlQuery.
- */
public void setCql(String cql) {
this.cql = cql;
}
@@ -353,9 +369,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
}
}
- /**
- * To use the Session instance (you would normally not use this option)
- */
public void setSession(CqlSession session) {
this.session = session;
}
@@ -364,9 +377,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return clusterName;
}
- /**
- * Cluster name
- */
public void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
@@ -375,9 +385,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return username;
}
- /**
- * Username for session authentication
- */
public void setUsername(String username) {
this.username = username;
}
@@ -386,9 +393,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return password;
}
- /**
- * Password for session authentication
- */
public void setPassword(String password) {
this.password = password;
}
@@ -408,10 +412,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return resultSetConversionStrategy;
}
- /**
- * To use a custom class that implements logic for converting ResultSet
into message body ALL, ONE, LIMIT_10,
- * LIMIT_100...
- */
public void setResultSetConversionStrategy(ResultSetConversionStrategy
resultSetConversionStrategy) {
this.resultSetConversionStrategy = resultSetConversionStrategy;
}
@@ -420,16 +420,10 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
return prepareStatements;
}
- /**
- * Whether to use PreparedStatements or regular Statements
- */
public void setPrepareStatements(boolean prepareStatements) {
this.prepareStatements = prepareStatements;
}
- /**
- * To use a specific LoadBalancingPolicyClass
- */
public String getLoadBalancingPolicyClass() {
return loadBalancingPolicyClass;
}
@@ -438,13 +432,6 @@ public class CassandraEndpoint extends
ScheduledPollEndpoint implements Endpoint
this.loadBalancingPolicyClass = loadBalancingPolicyClass;
}
- /**
- * To use a specific comma separated list of Extra Type codecs. Possible
values are: BLOB_TO_ARRAY,
- * BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY,
INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY,
- * FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY, TIMESTAMP_UTC,
TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
- * ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC, ZONED_TIMESTAMP_PERSISTED,
LOCAL_TIMESTAMP_SYSTEM and
- * LOCAL_TIMESTAMP_UTC
- */
public String getExtraTypeCodecs() {
return extraTypeCodecs;
}
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 5d0b0450446d..ee9c828d07c6 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
@@ -1351,8 +1351,7 @@ public interface ComponentsBuilderFactory {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
- * Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CqlComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CqlComponentBuilderFactory.java
index fe618c9056a8..972f4247bd5c 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CqlComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/CqlComponentBuilderFactory.java
@@ -24,8 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.cassandra.CassandraComponent;
/**
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API). Based
- * on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -34,8 +33,7 @@ public interface CqlComponentBuilderFactory {
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
- * Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
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 a3d5b8835360..922716b29411 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
@@ -1104,8 +1104,7 @@ public class EndpointHeaderBuilders {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
- * Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
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 8db32aa8be54..9ec1a8161d58 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
@@ -4315,8 +4315,7 @@ public class StaticEndpointBuilders {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
- * Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
@@ -4325,17 +4324,25 @@ public class StaticEndpointBuilders {
* Syntax: <code>cql:beanRef:hosts:port/keyspace</code>
*
* Path parameter: beanRef
- * beanRef is defined using bean:id
+ * The name of a com.datastax.oss.driver.api.core.CqlSession in the
+ * registry, written as bean:name in the URI. The endpoint uses the
keyspace
+ * of this session, not the keyspace in the URI, and does not close the
+ * session. The session option replaces it.
*
* Path parameter: hosts
- * Hostname(s) Cassandra server(s). Multiple hosts can be separated by
- * comma.
+ * The host names or IP addresses of the Cassandra nodes that the driver
+ * contacts first, separated by commas. When neither the session option nor
+ * a bean is set, the endpoint creates a session from them and closes it
+ * when it stops.
*
* Path parameter: port
- * Port number of Cassandra server(s)
+ * The port of the CQL native protocol, the same for all the nodes in the
+ * hosts. If not set, 9042 is used.
*
* Path parameter: keyspace
- * Keyspace to use
+ * The keyspace of the session that the endpoint creates from the hosts, so
+ * that the CQL can name tables without their keyspace. It is not used with
+ * the session option or a bean.
*
* @param path beanRef:hosts:port/keyspace
* @return the dsl builder
@@ -4345,8 +4352,7 @@ public class StaticEndpointBuilders {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API).
- * Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
@@ -4355,17 +4361,25 @@ public class StaticEndpointBuilders {
* Syntax: <code>cql:beanRef:hosts:port/keyspace</code>
*
* Path parameter: beanRef
- * beanRef is defined using bean:id
+ * The name of a com.datastax.oss.driver.api.core.CqlSession in the
+ * registry, written as bean:name in the URI. The endpoint uses the
keyspace
+ * of this session, not the keyspace in the URI, and does not close the
+ * session. The session option replaces it.
*
* Path parameter: hosts
- * Hostname(s) Cassandra server(s). Multiple hosts can be separated by
- * comma.
+ * The host names or IP addresses of the Cassandra nodes that the driver
+ * contacts first, separated by commas. When neither the session option nor
+ * a bean is set, the endpoint creates a session from them and closes it
+ * when it stops.
*
* Path parameter: port
- * Port number of Cassandra server(s)
+ * The port of the CQL native protocol, the same for all the nodes in the
+ * hosts. If not set, 9042 is used.
*
* Path parameter: keyspace
- * Keyspace to use
+ * The keyspace of the session that the endpoint creates from the hosts, so
+ * that the CQL can name tables without their keyspace. It is not used with
+ * the session option or a bean.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
index bd5f469f78f9..46b1fcc8ae1b 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CassandraEndpointBuilderFactory.java
@@ -27,8 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift API). Based
- * on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,7 +44,7 @@ public interface CassandraEndpointBuilderFactory {
return (AdvancedCassandraEndpointConsumerBuilder) this;
}
/**
- * Cluster name.
+ * Not used: the component does not pass this value to the driver.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -59,8 +58,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * CQL query to perform. Can be overridden with the message header with
- * key CamelCqlQuery.
+ * The CQL statement that the consumer executes at each poll, and that
+ * the producer executes when the CamelCqlQuery header is not set. The
+ * producer binds the values of the ? or :name markers from the message
+ * body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -74,7 +75,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Datacenter to use.
+ * The name of the local datacenter, whose nodes the default load
+ * balancing policy of the driver sends the requests to. Used only for
+ * the session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -89,7 +92,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option is a: <code>boolean</code> type.
*
@@ -104,7 +110,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -650,7 +659,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Password for session authentication.
+ * The password for plain text authentication with the Cassandra nodes.
+ * Used only together with the username option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -664,7 +675,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Username for session authentication.
+ * The user name for plain text authentication with the Cassandra
nodes.
+ * Used only together with the password option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -842,14 +855,15 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a specific comma separated list of Extra Type codecs.
Possible
- * values are: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
BYTE_LIST_TO_ARRAY,
- * SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY,
- * FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY, TIMESTAMP_UTC,
- * TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
+ * The extra codecs of the driver (from its ExtraTypeCodecs class) to
+ * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
+ * BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY,
+ * LONG_LIST_TO_ARRAY, FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY,
+ * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
* ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
- * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM and
- * LOCAL_TIMESTAMP_UTC.
+ * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
+ * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
+ * session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -863,7 +877,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a specific LoadBalancingPolicyClass.
+ * The class of the load balancing policy of the driver (its
+ * basic.load-balancing-policy.class setting). A class name without a
+ * package, such as DcInferringLoadBalancingPolicy, is one of the
+ * policies of the driver; if not set, the driver uses
+ * DefaultLoadBalancingPolicy. Used only for the session that the
+ * endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -877,8 +896,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option is a:
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -893,8 +916,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option will be converted to a
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -909,7 +936,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option is a:
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -924,7 +955,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option will be converted to a
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -951,7 +986,7 @@ public interface CassandraEndpointBuilderFactory {
}
/**
- * Cluster name.
+ * Not used: the component does not pass this value to the driver.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -965,8 +1000,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * CQL query to perform. Can be overridden with the message header with
- * key CamelCqlQuery.
+ * The CQL statement that the consumer executes at each poll, and that
+ * the producer executes when the CamelCqlQuery header is not set. The
+ * producer binds the values of the ? or :name markers from the message
+ * body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -980,7 +1017,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Datacenter to use.
+ * The name of the local datacenter, whose nodes the default load
+ * balancing policy of the driver sends the requests to. Used only for
+ * the session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -995,7 +1034,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option is a: <code>boolean</code> type.
*
@@ -1010,7 +1052,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -1025,7 +1070,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Password for session authentication.
+ * The password for plain text authentication with the Cassandra nodes.
+ * Used only together with the username option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1039,7 +1086,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Username for session authentication.
+ * The user name for plain text authentication with the Cassandra
nodes.
+ * Used only together with the password option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1109,14 +1158,15 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a specific comma separated list of Extra Type codecs.
Possible
- * values are: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
BYTE_LIST_TO_ARRAY,
- * SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY,
- * FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY, TIMESTAMP_UTC,
- * TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
+ * The extra codecs of the driver (from its ExtraTypeCodecs class) to
+ * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
+ * BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY,
+ * LONG_LIST_TO_ARRAY, FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY,
+ * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
* ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
- * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM and
- * LOCAL_TIMESTAMP_UTC.
+ * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
+ * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
+ * session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1130,7 +1180,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a specific LoadBalancingPolicyClass.
+ * The class of the load balancing policy of the driver (its
+ * basic.load-balancing-policy.class setting). A class name without a
+ * package, such as DcInferringLoadBalancingPolicy, is one of the
+ * policies of the driver; if not set, the driver uses
+ * DefaultLoadBalancingPolicy. Used only for the session that the
+ * endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1144,8 +1199,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option is a:
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -1160,8 +1219,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option will be converted to a
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -1176,7 +1239,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option is a:
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -1191,7 +1258,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option will be converted to a
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -1219,7 +1290,7 @@ public interface CassandraEndpointBuilderFactory {
}
/**
- * Cluster name.
+ * Not used: the component does not pass this value to the driver.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1233,8 +1304,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * CQL query to perform. Can be overridden with the message header with
- * key CamelCqlQuery.
+ * The CQL statement that the consumer executes at each poll, and that
+ * the producer executes when the CamelCqlQuery header is not set. The
+ * producer binds the values of the ? or :name markers from the message
+ * body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1248,7 +1321,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Datacenter to use.
+ * The name of the local datacenter, whose nodes the default load
+ * balancing policy of the driver sends the requests to. Used only for
+ * the session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1263,7 +1338,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option is a: <code>boolean</code> type.
*
@@ -1278,7 +1356,10 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Whether to use PreparedStatements or regular Statements.
+ * Whether to execute the CQL as a prepared statement. The cql option
is
+ * prepared once when the consumer or producer starts, and a CQL from
+ * the CamelCqlQuery header is prepared for each message. If false, the
+ * CQL is sent as a simple statement each time.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -1293,7 +1374,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Password for session authentication.
+ * The password for plain text authentication with the Cassandra nodes.
+ * Used only together with the username option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1307,7 +1390,9 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * Username for session authentication.
+ * The user name for plain text authentication with the Cassandra
nodes.
+ * Used only together with the password option, and only for the
session
+ * that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1334,14 +1419,15 @@ public interface CassandraEndpointBuilderFactory {
}
/**
- * To use a specific comma separated list of Extra Type codecs.
Possible
- * values are: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
BYTE_LIST_TO_ARRAY,
- * SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY,
- * FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY, TIMESTAMP_UTC,
- * TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
+ * The extra codecs of the driver (from its ExtraTypeCodecs class) to
+ * register, separated by commas: BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY,
+ * BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY,
+ * LONG_LIST_TO_ARRAY, FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY,
+ * TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC,
* ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC,
- * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM and
- * LOCAL_TIMESTAMP_UTC.
+ * ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM or
+ * LOCAL_TIMESTAMP_UTC. An unknown name is ignored. Used only for the
+ * session that the endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1355,7 +1441,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a specific LoadBalancingPolicyClass.
+ * The class of the load balancing policy of the driver (its
+ * basic.load-balancing-policy.class setting). A class name without a
+ * package, such as DcInferringLoadBalancingPolicy, is one of the
+ * policies of the driver; if not set, the driver uses
+ * DefaultLoadBalancingPolicy. Used only for the session that the
+ * endpoint creates from the hosts.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1369,8 +1460,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option is a:
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -1385,8 +1480,12 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use a custom class that implements logic for converting ResultSet
- * into message body ALL, ONE, LIMIT_10, LIMIT_100...
+ * How the rows of the result become the message body: ALL for a List
of
+ * all the com.datastax.oss.driver.api.core.cql.Row objects (the
+ * default), ONE for the first Row or null, LIMIT_n, such as LIMIT_10,
+ * for a List of at most n rows. A custom
+ * org.apache.camel.component.cassandra.ResultSetConversionStrategy can
+ * be set instead.
*
* The option will be converted to a
*
<code>org.apache.camel.component.cassandra.ResultSetConversionStrategy</code>
type.
@@ -1401,7 +1500,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option is a:
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -1416,7 +1519,11 @@ public interface CassandraEndpointBuilderFactory {
return this;
}
/**
- * To use the Session instance (you would normally not use this
option).
+ * To use a custom com.datastax.oss.driver.api.core.CqlSession. When
+ * set, the endpoint does not create a session from the hosts or look
up
+ * a bean, and does not close this session. The options for creating a
+ * session, such as keyspace, datacenter, username and password, are
not
+ * used.
*
* The option will be converted to a
* <code>com.datastax.oss.driver.api.core.CqlSession</code> type.
@@ -1435,8 +1542,7 @@ public interface CassandraEndpointBuilderFactory {
public interface CassandraBuilders {
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift
- * API). Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
@@ -1449,8 +1555,7 @@ public interface CassandraEndpointBuilderFactory {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift
- * API). Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
@@ -1459,17 +1564,25 @@ public interface CassandraEndpointBuilderFactory {
* Syntax: <code>cql:beanRef:hosts:port/keyspace</code>
*
* Path parameter: beanRef
- * beanRef is defined using bean:id
+ * The name of a com.datastax.oss.driver.api.core.CqlSession in the
+ * registry, written as bean:name in the URI. The endpoint uses the
+ * keyspace of this session, not the keyspace in the URI, and does not
+ * close the session. The session option replaces it.
*
* Path parameter: hosts
- * Hostname(s) Cassandra server(s). Multiple hosts can be separated by
- * comma.
+ * The host names or IP addresses of the Cassandra nodes that the
driver
+ * contacts first, separated by commas. When neither the session option
+ * nor a bean is set, the endpoint creates a session from them and
+ * closes it when it stops.
*
* Path parameter: port
- * Port number of Cassandra server(s)
+ * The port of the CQL native protocol, the same for all the nodes in
+ * the hosts. If not set, 9042 is used.
*
* Path parameter: keyspace
- * Keyspace to use
+ * The keyspace of the session that the endpoint creates from the
hosts,
+ * so that the CQL can name tables without their keyspace. It is not
+ * used with the session option or a bean.
*
* @param path beanRef:hosts:port/keyspace
* @return the dsl builder
@@ -1479,8 +1592,7 @@ public interface CassandraEndpointBuilderFactory {
}
/**
* Cassandra CQL (camel-cassandraql)
- * Integrate with Cassandra 2.0+ using the CQL3 API (not the Thrift
- * API). Based on Cassandra Java Driver provided by DataStax.
+ * Query and update an Apache Cassandra database with CQL statements.
*
* Category: database,bigdata
* Since: 2.15
@@ -1489,17 +1601,25 @@ public interface CassandraEndpointBuilderFactory {
* Syntax: <code>cql:beanRef:hosts:port/keyspace</code>
*
* Path parameter: beanRef
- * beanRef is defined using bean:id
+ * The name of a com.datastax.oss.driver.api.core.CqlSession in the
+ * registry, written as bean:name in the URI. The endpoint uses the
+ * keyspace of this session, not the keyspace in the URI, and does not
+ * close the session. The session option replaces it.
*
* Path parameter: hosts
- * Hostname(s) Cassandra server(s). Multiple hosts can be separated by
- * comma.
+ * The host names or IP addresses of the Cassandra nodes that the
driver
+ * contacts first, separated by commas. When neither the session option
+ * nor a bean is set, the endpoint creates a session from them and
+ * closes it when it stops.
*
* Path parameter: port
- * Port number of Cassandra server(s)
+ * The port of the CQL native protocol, the same for all the nodes in
+ * the hosts. If not set, 9042 is used.
*
* Path parameter: keyspace
- * Keyspace to use
+ * The keyspace of the session that the endpoint creates from the
hosts,
+ * so that the CQL can name tables without their keyspace. It is not
+ * used with the session option or a bean.
*
* @param componentName to use a custom component name for the endpoint
* instead of the default name
@@ -1522,7 +1642,11 @@ public interface CassandraEndpointBuilderFactory {
public static final CassandraHeaderNameBuilder INSTANCE = new
CassandraHeaderNameBuilder();
/**
- * The CQL query to execute.
+ * The CQL statement that the producer executes instead of the cql
+ * option: a String, or a
+ * com.datastax.oss.driver.api.core.cql.SimpleStatement. An empty
String
+ * uses the cql option. With prepareStatements, the statement is
+ * prepared for each message.
*
* The option is a: {@code String} type.
*
@@ -1534,7 +1658,10 @@ public interface CassandraEndpointBuilderFactory {
return "CamelCqlQuery";
}
/**
- * The resume action to execute when resuming.
+ * Not a message header: the name of the
+ * org.apache.camel.resume.ResumeAction bean that the consumer looks up
+ * in the registry when it starts with a resume strategy whose adapter
+ * takes a resume action.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index b66d44aa4a4e..c2a6ce853f1e 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -127,7 +127,7 @@ or removes its row.
| camel-browse | browse | yes |
| camel-caffeine | caffeine-cache, caffeine-loadcache | |
| camel-camunda | camunda | |
-| camel-cassandraql | cql | |
+| camel-cassandraql | cql | yes |
| camel-cedar | cedar | |
| camel-chatscript | chatscript | |
| camel-chunk | chunk | |