My column family needs two composite columns, the key data type is BytesType.
Here is the definition of table using CQL:
CREATE TABLE stats (
gid blob,
period int,
tid blob,
sum int,
uniques blob,
PRIMARY KEY(gid, period, tid)
);
What I want to do is to create the column family but with Cassandra CLI. Here is my shot.
The structure of the first composite is:
CompositeType(Int32Type, BytesType, AsciiType)
and it will holds an integer.
The structure of the second composite is:
CompositeType(Int32Type, BytesType)
and will holds BytesType.
create column family stats with comparator = 'CompositeType(Int32Type, BytesType, AsciiType)';
I'm not sure how to define the second composite column in create column family command.
Of course I'm assuming that the table created with CQL will generate two composite columns.