Working with cassandra using Thrift api