Database Reference
In-Depth Information
Thrift based mutation still works faster than CQL3 (such as batch op-
eration) until Cassandra 1.x.x releases. This is scheduled to address
with Cassandra 2.0.0 release ( https://issues.apache.org/
jira/browse/CASSANDRA-4693 ) .
Changing Data Types
Changing data types with Cassandra is possible in two ways, Thrift and CQL3.
Thrift Way
Let's discuss more about data types with legacy Thrift API:
1.
Let's create a column family with minimal definition, such as:
create keyspace twitter with
strategy_options={replication_factor:1} and
placement_strategy='org.apache.cassandra.locator.SimpleStrategy';
use twitter;
create column family default;
Default data type for comparator and validator is BytesType .
2.
Let's describe the keyspace and have a look at the default column
family (see Figure 2-17 ):
describe twitter;
 
Search WWH ::




Custom Search