Database Reference
In-Depth Information
Data Types
Before CQL's evolution, data types in Cassandra are defined in the form of a comparat-
or and validator. Column or row key value is referred to as a validator , whereas a
column name is called a comparator . Available data types are shown in Figure 2-3 .
Figure 2-3 . Cassandra's supported data types
Dynamic Columns
Since its inception, Cassandra is projected as a schema-less, column-family-oriented
distributed database. The number of columns may vary for each row in a column fam-
ily. A column definition can be added dynamically at run time.
Cassandra-cli (Thrift) and cqlsh (CQL3) are two command clients we will be using
for various exercises in this chapter.
Dynamic Columns via Thrift
Let's discuss a simple Twitter use case. In this example we would explore ways to
model and store dynamic columns via Thrift.
 
 
Search WWH ::




Custom Search