| java.lang.Object | |
| ↳ | com.mulesoft.mule.cassandradb.CassandraDBConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
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.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| client | Cassandra Client | ||||||||||
| consistencyLevel | Consistency Level. | ||||||||||
| host | Host name or IP address | ||||||||||
| keyspace | Cassandra keyspace | ||||||||||
| logger | |||||||||||
| port | Port (default is 9160) | ||||||||||
| tr | Generic class that encapsulates the I/O layer. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Increments a CounterColumn consisting of (name, value) at the given
ColumnParent.
| |||||||||||
Executes the specified mutations on the keyspace.
| |||||||||||
Method invoked when a connection is required
| |||||||||||
Connection Identifier
| |||||||||||
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.
| |||||||||||
Disconnect
| |||||||||||
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
| |||||||||||
Are we connected
| |||||||||||
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.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Cassandra Client
Consistency Level. Can be one of ANY, ONE (default), TWO, THREE, QUORUM, LOCAL_QUORUM, EACH_QUORUM, ALL. See http://wiki.apache.org/cassandra/API for more details.
Host name or IP address
Cassandra keyspace
Port (default is 9160)
Generic class that encapsulates the I/O layer. This is basically a thin wrapper around the combined functionality of Java input/output streams.
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.
| rowKey | Key of the row |
|---|---|
| columnParent | Column Parent of the CounterColum |
| counterName | Name of the column |
| counterValue | Value of the counter |
| 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.
| content | A Map<ByteBuffer, Map<String, List<Mutation>>> |
|---|
| Exception | Exception |
|---|
Method invoked when a connection is required
| username | A username. NOTE: Please use a dummy username if you have disabled authentication |
|---|---|
| password | A password. NOTE: Leave empty if not required. If specified, the connector will try to login with this credentials |
| ConnectionException |
|---|
Connection Identifier
Gets the name of the cluster.
| TException | Generic exception class for Thrift. |
|---|
Gets information about the specified keyspace.
| keyspace | Name of the keyspace |
|---|
| 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.)
| 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.
| 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.
| keyspace | Keyspace name |
|---|
| 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.
| 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.
| TException | Generic exception class for Thrift. |
|---|
Gets the Thrift API version.
| TException | Generic exception class for Thrift. |
|---|
Disconnect
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
| query | CQL Statement to be executed |
|---|---|
| compression | Compression level, by default we use NONE |
| 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
| rowKey | The row key |
|---|---|
| columnPath | Path to the column - must be in the form of ColumnFamily:SuperColumn:Column. If you don't need a SuperColumn |
| columnSerializers | Serializers for each column |
| 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.
| rowKey | The row key |
|---|---|
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| 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.
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
|---|---|
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| clauseCount | The number of results to which the index query will be constrained |
| clauseStartKey | Start the index query at the specified key - can be set to '', i.e., an empty byte array, to start with the first key |
| expressionList | The list of IndexExpression objects which must contain one EQ IndexOperator among the expressions |
| 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.
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
|---|---|
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| startKey | The first key in the inclusive KeyRange. |
| endKey | The last key in the inclusive KeyRange. |
| startToken | The first token in the exclusive KeyRange. |
| endToken | The last token in the exclusive KeyRange. |
| keyRangeCount | The total number of keys to permit in the KeyRange. |
| 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
| rowKey | The row key |
|---|---|
| columnPath | Path to the column |
| columnSerializers | Serializers for each column |
| 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.
| rowKey | The row key |
|---|---|
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| columnSerializers | Serializers for each column |
| 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
| rowKey | The row key |
|---|---|
| columnParent | The ColumnParent |
| columnName | The name of the column |
| columnValue | The value of the column |
| ttl | An optional, positive delay (in seconds) after which the Column will be automatically deleted. |
| 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
| content | 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 |
|---|
| 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. |
Are we connected
A combination of multiget_slice and get_count.
| rowKeys | A list of keys used for |
|---|---|
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| 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 list
| rowKeys | A list of keys used for |
|---|---|
| columnParent | Path to the column - must be a name of the ColumnFamily or ColumnFamily:SuperColumn pair |
| start | 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. |
| finish | 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. |
| reversed | Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL. |
| count | 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. |
| columnSerializers | Serializers for each column |
| 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.
| rowKey | The row key |
|---|---|
| columnPath | Path to the column - must be in the form of ColumnFamily:SuperColumn:Column |
| 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.
| rowKey | Key of the row |
|---|---|
| columnPath | Column that will be affected by the remove counter |
| 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. |
| client |
|---|
| consistencyLevel |
|---|
| host |
|---|
| keyspace |
|---|
| port |
|---|
Set the keyspace to use for subsequent requests.
| value | New value that will be used to all following requests |
|---|
| 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
| cfDefinition | An instance of CfDef |
|---|
| 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
| cfDefinition | An instance of CfDef |
|---|---|
| columnNames | A list that contains the columns names for columns defined in column_metadata |
| 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.
| columnFamilyName | The name of the column to be added |
|---|---|
| comparatorType | 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:
|
| keyValidationClass | Validator to use for keys. Default is BytesType which applies no validation.
Supported values are:
|
| defaultValidationClass | 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:
|
| columnMetadata | 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 |
| keyspace | The name of the keyspace. If null, current keyspace will be used |
| 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 families| keyspaceDefinition | The keyspace definition that will be added |
|---|
| 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
| keyspaceName | The keyspace name |
|---|---|
| columnNames | List of the column names the keyspace will have |
| strategyClass | The name of the class that handles the Replication Strategy. |
| strategyOptions | Map containing the configuration for the strategy class selected. |
| 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.
| columnFamily | The name of the column family to be drop |
|---|
| 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.
| keyspace | Name of the keyspace to be dropped |
|---|
| 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.
| columnFamily | CfDef with new settings |
|---|
| 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.
| keyspaceDef | New keyspace to be applied for update |
|---|
| 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.
| columnFamily | Column Family |
|---|
| 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. |