cassandra apis and sample codes