com.tuplejump.calliope.examples.Transformers
Finally, let us see at a special case of column family with a counter column.
If we have created a CQL3 CF like this,
+-----------+--------------+-------------------+ | fact (pk) | base_ts (ck) | count (counter) | +-----------+--------------+-------------------+
There is nothing different in reading from the ColumnFamily. So if we are using a case class called FactCount like,
FactCount(fact: String, baseTs: Date, count: Long)
Finally, let us see at a special case of column family with a counter column.
If we have created a CQL3 CF like this,
+-----------+--------------+-------------------+ | fact (pk) | base_ts (ck) | count (counter) | +-----------+--------------+-------------------+
There is nothing different in reading from the ColumnFamily. So if we are using a case class called FactCount like,
FactCount(fact: String, baseTs: Date, count: Long)