Collections

Cassandra provides three major collection data types to bundle up multiple objects into a single column without having to declare multiple keys for each of the objects. Here are the three types:

  • List: A non-unique ordered collection of one or more elements
  • Set: A unique collection of one or more elements
  • Map: A collection of key value pairs

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.