| Namespace | http://www.mulesoft.org/schema/mule/cassandradb |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/cassandradb/current/mule-cassandradb.xsd (View Schema) |
| Schema Version | 3.2 |
| Minimum Mule Version | 3.2 |
Connector allows the user to interact with any Cassandra DB. The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Cassandra's ColumnFamily data model offers the convenience of column indexes with the performance of log-structured updates, strong support for materialized views, and powerful built-in caching.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Increments a CounterColumn consisting of (name, value) at the given
ColumnParent.
| |||||||||||
Executes the specified mutations on the keyspace.
| |||||||||||
Gets the name of the cluster.
| |||||||||||
Gets information about the specified keyspace.
| |||||||||||
Gets a list of all the keyspaces configured for the cluster.
| |||||||||||
Gets the name of the partitioner for the cluster.
| |||||||||||
Gets the token ring; a map of ranges to host addresses.
| |||||||||||
For each schema version present in the cluster, returns a list of nodes
at that version.
| |||||||||||
Gets the name of the snitch used for the cluster.
| |||||||||||
Gets the Thrift API version.
| |||||||||||
Executes a CQL (Cassandra Query Language) statement and returns a
CqlResult containing the results.
| |||||||||||
Get Column or SuperColumn by the path
| |||||||||||
Counts the columns present in column_parent within the predicate.
| |||||||||||
Like get_range_slices, returns a list of slices, but uses IndexClause
instead of KeyRange.
| |||||||||||
Replaces get_range_slice.
| |||||||||||
Get Column or SuperColumn by the path
| |||||||||||
Get the group of columns contained by column_parent (either a
ColumnFamily name or a ColumnFamily/SuperColumn name pair) specified by
the given SlicePredicate (start, finish, reversed and count) parameters.
| |||||||||||
Insert a Column consisting of (name, value, timestamp, ttl) at the given
ColumnParent.
| |||||||||||
Insert object into the database
| |||||||||||
A combination of multiget_slice and get_count.
| |||||||||||
Retrieves slices for column_parent and predicate on each of the given
keys in parallel.
| |||||||||||
Remove data from the row specified by key at the granularity specified by
column_path, and the given timestamp.
| |||||||||||
Remove a counter from the row specified by key at the granularity
specified by column_path.
| |||||||||||
Set the keyspace to use for subsequent requests.
| |||||||||||
Adds a column family.
| |||||||||||
Adds a column family.
| |||||||||||
Adds a column family to the current keyspace.
| |||||||||||
Creates a new keyspace and any column families defined with it.
| |||||||||||
Creates a new keyspace with the provided name with all the defaults values
| |||||||||||
Drops a column family.
| |||||||||||
Drops a keyspace.
| |||||||||||
Updates properties of a ColumnFamily.
| |||||||||||
Updates properties of a keyspace.
| |||||||||||
Removes all the rows from the given column family.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cassandradb="http://www.mulesoft.org/schema/mule/cassandradb"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/cassandradb
http://www.mulesoft.org/schema/mule/cassandradb/current/mule-cassandradb.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| ONE | Optional. Consistency Level. | ||||||||||
| localhost | Optional. Host name or IP address | ||||||||||
| Cassandra keyspace | |||||||||||
| 9160 | Optional. Port (default is 9160) | ||||||||||
This connector offers automatic connection management via the use of a connection pool. The pool will act a storage mechanism for all the connections that are in-use by the user of this connector.
Prior to execution of a processor, the connector will attempt to lookup an already established connection and if one doesn't exists it will create one. That lookup mechanism is done in the connection pool via the use of connection variables declared as keys.
The user of the connector can configure the pool by adding a connection-pooling-profile to the connector configuration like this:
<cassandradb:connection-pooling-profile maxActive="10" maxIdle="10"
exhaustedAction="WHEN_EXHAUSTED_GROW" maxWait="120" minEvictionMillis="60000" evictionCheckIntervalMillis="30000"/>
The following is a list of connection attributes, each connection attribute can be configured at the config element level or they can also be added to each processor. If they are used at the processor level they get the benefit of full expression resolution.
| Connection Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
| Optional. Specify which configuration to use. | |||||||||||
| A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
Reconnection Strategies specify how a connector behaves when its connection fails. You can control how Mule attempts to reconnect by specifying a number of criteria:
With a reconnection strategy, you can better control the behavior of a failed connection, by configuring it, for example, to re-attempt the connection only once every 15 minutes, and to give up after 30 attempts. You can also send an automatic notification to your IT administrator whenever this reconnection strategy goes into effect. You can even define a strategy that attempts to reconnect only during business hours. Such a setting can prove useful if your server is frequently shut down for nightly maintenance.
A reconnection strategy that allows the user to configure how many times a reconnection should be attempted and how long to wait between attempts.
<cassandradb:config>
<reconnect count="5" frequency="1000"/>
</cassandradb:config>
| Reconnect Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | |||||||||
| Optional. How often (in ms) to reconnect | |||||||||||
| Optional. How many reconnection attempts to make | |||||||||||
For more information about reconnection strategies in Mule, or even how to write your own custom reconnection strategy please check this section.
Increments a CounterColumn consisting of (name, value) at the given ColumnParent. Note that a SuperColumn cannot directly contain binary values -- it can only contain sub-Columns.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Key of the row | String | */* | UTF-8 | ||||||||
| Column Parent of the CounterColum | String | */* | UTF-8 | ||||||||
| Name of the column | String | */* | UTF-8 | ||||||||
| Value of the counter | int | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Executes the specified mutations on the keyspace. content is a
Map<string, Map<string, List<Mutation>>>; the outer map maps the key to
the inner map, which maps the column family to the Mutation; can be read
as: Map<key : string, Map<column_family : string, List<Mutation>>>. To
be more specific, the outer map key is a row key, the inner map key is
the column family name. A Mutation specifies either columns to insert or
columns to delete. See Mutation and Deletion above for more details.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. A Map<ByteBuffer, Map<String, List<Mutation>>> | Map |
| Payload Class | Description |
|---|---|
| Exception | Exception |
Gets the name of the cluster.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | the cluster name |
| Payload Class | Description |
|---|---|
| TException | Generic exception class for Thrift. |
Gets information about the specified keyspace.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Name of the keyspace | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| Object | A KsDef instance |
| Payload Class | Description |
|---|---|
| NotFoundException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| TException | Generic exception class for Thrift. |
Gets a list of all the keyspaces configured for the cluster. (Equivalent to calling describe_keyspace(k) for k in keyspaces.)
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| List | A list of KsDef |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| TException | Generic exception class for Thrift. |
Gets the name of the partitioner for the cluster.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | Partitioner name |
| Payload Class | Description |
|---|---|
| TException | Generic exception class for Thrift. |
Gets the token ring; a map of ranges to host addresses. Represented as a set of TokenRange instead of a map from range to list of endpoints, because you can't use Thrift structs as map keys: https://issues.apache.org/jira/browse/THRIFT-162 for the same reason, we can't return a set here, even though order is neither important nor predictable.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Keyspace name | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| List | A list of TokenRange |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| TException | Generic exception class for Thrift. |
For each schema version present in the cluster, returns a list of nodes at that version. Hosts that do not respond will be under the key DatabaseDescriptor.INITIAL_VERSION. The cluster is all on the same version if the size of the map is 1.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| Map | A map of type Map |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| TException | Generic exception class for Thrift. |
Gets the name of the snitch used for the cluster.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | String with the name of the snitch |
| Payload Class | Description |
|---|---|
| TException | Generic exception class for Thrift. |
Gets the Thrift API version.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | API Version string representation |
| Payload Class | Description |
|---|---|
| TException | Generic exception class for Thrift. |
Executes a CQL (Cassandra Query Language) statement and returns a CqlResult containing the results. For more information about CQL please visit: http://cassandra.apache.org/doc/cql/CQL.html
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| CQL Statement to be executed | String | */* | UTF-8 | ||||||||
| NONE | Optional. Compression level, by default we use NONE | Compression | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| Object | CqlResult containing the results of the execution |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Get Column or SuperColumn by the path
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| Path to the column - must be in the form of ColumnFamily:SuperColumn:Column. If you don't need a SuperColumn | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Serializers for each column | List<ColumnSerializer> |
| Return Type | Description |
|---|---|
| Object | the result as a JSON node |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
| NotFoundException | A specific column was requested that does not exist. |
Counts the columns present in column_parent within the predicate.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| int | Count of register that met the conditions |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Like get_range_slices, returns a list of slices, but uses IndexClause instead of KeyRange. To use this method, the underlying ColumnFamily of the ColumnParent must have been configured with a column_metadata attribute, specifying at least the name and index_type attributes. See CfDef and ColumnDef above for the list of attributes. Note: the IndexClause must contain one IndexExpression with an EQ operator on a configured index column. Other IndexExpression structs may be added to the IndexClause for non-indexed columns to further refine the results of the EQ expression.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| 100 | Optional. The number of results to which the index query will be constrained | int | */* | ||||||||
| Start the index query at the specified key - can be set to '', i.e., an empty byte array, to start with the first key | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The list of IndexExpression objects which must contain one EQ IndexOperator among the expressions | List<IndexExpresion> |
| Return Type | Description |
|---|---|
| Object | List of objects KeySlice |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Replaces get_range_slice. Returns a list of slices for the keys within the specified KeyRange. Unlike get_key_range, this applies the given predicate to all keys in the range, not just those with undeleted matching data. Note that when using RandomPartitioner, keys are stored in the order of their MD5 hash, making it impossible to get a meaningful range of keys between two endpoints.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| Optional. The first key in the inclusive KeyRange. | String | */* | UTF-8 | ||||||||
| Optional. The last key in the inclusive KeyRange. | String | */* | UTF-8 | ||||||||
| Optional. The first token in the exclusive KeyRange. | String | */* | UTF-8 | ||||||||
| Optional. The last token in the exclusive KeyRange. | String | */* | UTF-8 | ||||||||
| 100 | Optional. The total number of keys to permit in the KeyRange. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| Object | List of objects KeySlice |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Get Column or SuperColumn by the path
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| Path to the column | ColumnPath | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Serializers for each column | List<ColumnSerializer> |
| Return Type | Description |
|---|---|
| Object | the result as a JSON node |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
| NotFoundException | A specific column was requested that does not exist. |
Get the group of columns contained by column_parent (either a ColumnFamily name or a ColumnFamily/SuperColumn name pair) specified by the given SlicePredicate (start, finish, reversed and count) parameters.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Serializers for each column | List<ColumnSerializer> |
| Return Type | Description |
|---|---|
| Object | the result as a JSON node |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Insert a Column consisting of (name, value, timestamp, ttl) at the given ColumnParent. Note that a SuperColumn cannot directly contain binary values -- it can only contain sub-Columns. Only one sub-Column may be inserted at a time, as well. Any number of columns may be inserted at the same time. When inserting or updating columns in a column family, the client application specifies the row key to identify which column records to update. The row key is similar to a primary key in that it must be unique for each row within a column family. However, unlike a primary key, inserting a duplicate row key will not result in a primary key constraint violation - it will be treated as an UPSERT (update the specified columns in that row if they exist or insert them if they do not). For more details check: http://www.datastax.com/docs/0.8/dml/about_writes
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| The ColumnParent | String | */* | UTF-8 | ||||||||
| The name of the column | String | */* | UTF-8 | ||||||||
| The value of the column | String | */* | UTF-8 | ||||||||
| 0 | Optional. An optional, positive delay (in seconds) after which the Column will be automatically deleted. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| TException | Generic exception class for Thrift. |
| TimedOutException | Exception |
| UnavailableException | Not all the replicas required could be created and/or read. |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
Insert object into the database
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| #[payload] | Optional. Content to be inserted into the database. Must be an instance of Map in the following format: { "ToyStores" : { - Column Family "Ohio Store" : { - RowKey "Transformer" : { - SuperColumn "Price" : "29.99", - Column "Section" : "Action Figures" } "GumDrop" : { "Price" : "0.25", "Section" : "Candy" } "MatchboxCar" : { "Price" : "1.49", "Section" : "Vehicles" } } "New York Store" : { "JawBreaker" : { "Price" : "4.25", "Section" : "Candy" } "MatchboxCar" : { "Price" : "8.79", "Section" : "Vehicles" } } } } * @param password A password | Map |
| Return Type | Description |
|---|---|
| Map | Same content |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| TException | Generic exception class for Thrift. |
| TimedOutException | Time out of the request |
| UnavailableException | Not all the replicas required could be created and/or read. |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed.Why contains an associated error message. |
A combination of multiget_slice and get_count.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| A list of keys used for | List<String> |
| Return Type | Description |
|---|---|
| Object | A map of keys and integers |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Retrieves slices for column_parent and predicate on each of the given
keys in parallel. Keys are a listXML Sample
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair | String | */* | UTF-8 | ||||||||
| Optional. The column name to start the slice with. This attribute is not required, though there is no default value, and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it must a valid value under the rules of the Comparator defined for the given ColumnFamily. | String | */* | UTF-8 | ||||||||
| Optional. The column name to stop the slice at. This attribute is not required, though there is no default value, and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it must also be a valid value to the ColumnFamily Comparator. | String | */* | UTF-8 | ||||||||
| false | Optional. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. | boolean | */* | ||||||||
| 100 | Optional. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will materialize the whole result into memory before returning it to the client, so be aware that you may be better served by iterating through slices by passing the last value of one call in as the 'start' of the next instead of increasing 'count' arbitrarily large. | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| A list of keys used for | List<String> | ||
| Optional. Serializers for each column | List<ColumnSerializer> |
| Return Type | Description |
|---|---|
| Object | A map of keys and ColumnOrSuperColumn |
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Remove data from the row specified by key at the granularity specified by column_path, and the given timestamp. Note that all the values in column_path besides column_path.column_family are truly optional: you can remove the entire row by just specifying the ColumnFamily, or you can remove a SuperColumn or a single Column by specifying those levels too. Note that the timestamp is needed, so that if the commands are replayed in a different order on different nodes, the same result is produced.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The row key | String | */* | UTF-8 | ||||||||
| Path to the column - must be in the form of ColumnFamily:SuperColumn:Column | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| Exception | IOException |
Remove a counter from the row specified by key at the granularity specified by column_path. Note that all the values in column_path besides column_path.column_family are truly optional: you can remove the entire row by just specifying the ColumnFamily, or you can remove a SuperColumn or a single Column by specifying those levels too. Note that counters have limited support for deletes: if you remove a counter, you must wait to issue any following update until the delete has reached all the nodes and all of them have been fully compacted.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Key of the row | String | */* | UTF-8 | ||||||||
| Column that will be affected by the remove counter | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| UnsupportedEncodingException | Exception |
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TimedOutException | Exception |
| TException | Generic exception class for Thrift. |
Set the keyspace to use for subsequent requests.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| New value that will be used to all following requests | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| TException | Generic exception class for Thrift. |
Adds a column family. This method will throw an exception if a column family with the same name is already associated with the keyspace. Column names in metadata need to be ByteBuffer. You can achieve this by usin the CassandraDBUtils like in the next example
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| An instance of CfDef | CfDef | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | The new Schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Adds a column family. This method will throw an exception if a column family with the same name is already associated with the keyspace. This method also recieves a list of string to be used as column names
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| An instance of CfDef | CfDef | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| A list that contains the columns names for columns defined in column_metadata | List<String> |
| Return Type | Description |
|---|---|
| String | The new Schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
| UnsupportedEncodingException | Exception |
Adds a column family to the current keyspace. This method will throw an exception if a column family with the same name is already associated with the keyspace.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the column to be added | String | */* | UTF-8 | ||||||||
| BytesType | Optional. Validator to use to validate and compare column names in
this column family. For Standard column families it applies to columns, for
Super column families applied to super columns.Default is BytesType, which is a straight forward lexical
comparison of the bytes in each column.
Supported values are:
|
String | */* | UTF-8 | |||||||
| BytesType | Optional. Validator to use for keys. Default is BytesType which applies no validation.
Supported values are:
|
String | */* | UTF-8 | |||||||
| BytesType | Optional. Validator to use for values in columns which are
not listed in the column_metadata. Default is BytesType which applies
no validation.
Supported values are:
|
String | */* | UTF-8 | |||||||
| Optional. The name of the keyspace. If null, current keyspace will be used | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. A list with the column definitions. If null, a dynamic column family will be created. For more details check http://www.datastax.com/docs/1.0/ddl/column_family | List<ColumnDef> |
| Return Type | Description |
|---|---|
| String | The new Schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Creates a new keyspace and any column families defined with it. Callers are not required to first create an empty keyspace and then create column families for it.
This will create a keyspace named MyKeyspace with no column familiesINCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The keyspace definition that will be added | KsDef | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Creates a new keyspace with the provided name with all the defaults values
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The keyspace name | String | */* | UTF-8 | ||||||||
| Optional. The name of the class that handles the Replication Strategy. | ReplicationStrategy | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. List of the column names the keyspace will have | List<String> | ||
| Optional. Map containing the configuration for the strategy class selected. | Map<String, String> |
| Return Type | Description |
|---|---|
| Object | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Drops a column family. Creates a snapshot and then submits a 'graveyard' compaction during which the abandoned files will be deleted.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the column family to be drop | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Drops a keyspace. Creates a snapshot and then submits a 'graveyard' compaction during which the abandoned files will be deleted.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Name of the keyspace to be dropped | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| Object | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Updates properties of a ColumnFamily.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| CfDef with new settings | CfDef | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Updates properties of a keyspace.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| New keyspace to be applied for update | KsDef | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Return Type | Description |
|---|---|
| String | The new schema version ID. |
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| SchemaDisagreementException | Schemas are not in agreement across all nodes |
| TException | Generic exception class for Thrift. |
Removes all the rows from the given column family.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Column Family | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. A username. NOTE: Please use a dummy username if you have disabled authentication | String | */* | UTF-8 | ||||||||
| Optional. A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials | String | */* | UTF-8 | ||||||||
| Payload Class | Description |
|---|---|
| InvalidRequestException | Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed. |
| UnavailableException | Not all the replicas required could be created and/or read. |
| TException | Generic exception class for Thrift. |