View RSS Feed

Recent Blogs Posts

  1. Cassandra Delete Operation

    by , 02-23-2012 at 07:21 PM
    In this section, we will discuss that how we can delete a value from Cassandra database using Java code.
    Java Code: This is the code to explain Cassandra Delete Operation
    import org.apache.cassandra.thrift.Deletion;
    long timestamp =System.currentTimeMillis();
    List columns = new ArrayList();
    SlicePredicate slicePredicate = new SlicePredicate();
    Deletion deletion = new Deletion(timestamp);