From the course: Introduction to Cassandra
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Partitions - Cassandra Tutorial
From the course: Introduction to Cassandra
Partitions
- [Instructor] Now we're going to talk about the data structure used by Apache Cassandra and take a look at how partitions are created to leverage the data model. Let's look at the framework used for data structure. There are cells, rows, tables, and key spaces. A cell is the most basic element in the data structure. It contains the meat of the information in the row and column intersection. Here, the name Corhan is the value of the First Name for the row shown. So a row is a single entry in a table. It represents a single structured data item in a table. The item described with ID of 1, First Name of Corhan, Last Name of Stajamar, and Department of Wizardry represents one row in this table. A partition is a group of rows with the same partition token or value for each element in the partition key. In the case here, the partition key is Department and each of these rows share the partition token, Wizardry. Stored together, all rows sharing a partition token will be neighbors. A table…