Native Data Type: Counter
Learn in detail the native data type: Counter.
We'll cover the following...
As stated earlier, Apache Cassandra is not a schema-less database. It requires the data type for each column to be specified at table definition. This helps validate and restrain the data coming in. The data type dictates how the data is stored on disk, impacting the speed at which it is read and also helps sort data in the correct order. The following diagram illustrates the various categories of data types offered by Apache Cassandra.
For quick reference, the diagram below lists the previously introduced native CQL data types offered by Apache Cassandra.
The counter
data type
In this section we will explore the native data type counter
. Counters are different from other native data types as they require dedicated tables containing only the table’s primary key and counter
column(s).
Counter
is a ...