This post will show how to insert Super Column to Cassandra by using Thrift API.
At first, we create a Keyspace named "Sample" and Column Family named "SCTest" via Cassandra-cli.
As default , column type was "Standard" , so we need to assign column type to "Super".
then , we using Thrift to insert Super Column to DB , here is the sample code. Following code almost same as Thrift Examples, I only change some place to insert super column.
At first, we create a Keyspace named "Sample" and Column Family named "SCTest" via Cassandra-cli.
As default , column type was "Standard" , so we need to assign column type to "Super".
then , we using Thrift to insert Super Column to DB , here is the sample code. Following code almost same as Thrift Examples, I only change some place to insert super column.