The document describes Cassandra's data model and provides examples of standard and super column families. In the standard model, a column family contains columns with a name and value. In the super column model, a column contains sub-columns with a name and value, allowing for more complex nested data structures compared to the standard model.
Cassandra Data Model: Standard & Super Keyspace Column Family Examples
1. Cassandra Data Model: Standard
Keyspace
Column Family - Standard Example
“Blog”:{
Key “Post”:{
“first-post”:{
“title”:”1234”,
Column: Name “body”:”blah!”
}
“tags”:{
VALUE ……
}
}
}
2. Cassandra Data Model: Super
Keyspace
Column Family - Super Example
“Blog”:{
“Post”:{
Key “first-post”:{
“postDetail”:{
“title”:”1234”,
Column: Name “body”:”blah!”
}
Sub Column “tags”:{
“0”: Cassandra
}
VALUE }
}
}