Other data types

Cassandra provides other data types used for convenience purposes such as the following:

  • Counter: A coun64-bit a 64-bit integer used as a distributed counter value
  • Date: Date is a string formatted as yyyy-mm-dd such as 2016-11-02
  • Inet: Inet is an IP address string in IPv4 or IPv6 format
  • Time: Time is a string formatted as HH:MM:SS.XXXXXXXXX, which lets time values be stored with nanosecond precision

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.