About CQL for Cassandra 1.2Cassandra Query Language (CQL) is a query language for the Cassandra database.
IntroductionCassandra's data model is a partitioned row store with tunable consistency. Rows are organized into tables; the first component of a table's primary key is the partition key; within a partition, rows are clustered by the remaining columns of the key. Other columns can be indexed separately from the primary key.
Data modelingA brief description of data modeling in Cassandra.
IndexingAn index provides a means to access data in Cassandra using attributes other than the partition key for fast, efficient lookup of data matching a given condition.
Working with pre-CQL 3 applicationsInternally, CQL does not change the row and column mapping from the Thrift API mapping. CQL and Thrift use the same storage engine.
Using CQLYou can use CQL on the command line of a Cassandra node, from DataStax DevCenter, or programmatically using a number of APIs and drivers.
Starting cqlshHow to start cqlsh.
Using tab completionYou can use tab completion to see hints about how to complete a cqlsh command.
Creating and updating a keyspaceCreating a keyspace is the CQL counterpart to creating an SQL database.
Creating a tableSteps for creating a table with a single primary key.
Querying a system tableDetails about Cassandra database objects and cluster configuration in the system keyspace tables.
Using the keyspace qualifierTo simplify tracking multiple keyspaces, use the keyspace qualifier instead of the USE statement.
Determining time-to-live for a columnSteps for creating a table, inserting data into two columns, and calling the TTL function to retrieve the date/time of the writes to the columns.
Determining the date/time of a writeUsing the WRITETIME function in a SELECT statement to return the date/time in microseconds when the column was written to the database.
Adding columns to a tableUsing the ALTER TABLE command to add new columns to a table.
Altering the data type of a columnUsing ALTER TABLE, you can change the data type of a column after it is defined or added to a table.
Removing dataSetting the column values for automatic removal using the TTL (time-to-expire) table attribute.
Using collectionsCollection types provide an improved way of handling tasks, such as building multiple email address capability into tables.
Indexing a columnUsing cqlsh to create an index on column values.
Using a counterA counter is a special column for storing a number that is changed in increments.
IntroductionAbout using CQL.
CQL lexical structureCQL input consists of statements that change data, look up data, store data, or change the way data is stored.
Data typesBuilt-in data types for columns.
Keyspace propertiesAbout using CQL keyspace and table properties.
Table propertiesA list of CQL table properties and their syntax.
Subproperties of compactionConstructing a map of the compaction property and its subproperties.
Subproperties of compressionConfiguring compression for a table.
cqlsh commandsA list of cqlsh commands.
CQL commandsA list of CQL commands.