cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bujji4Tech <sivait...@gmail.com>
Subject get the latest column fails in cassandra 7
Date Wed, 21 Jul 2010 05:10:32 GMT
hi all ,

I am trying Cassandra 7(using latest build) got problem in getting the
latest column in  a row.


and my code is here

                 SlicePredicate predicate = new SlicePredicate();
 predicate.slice_range = new SliceRange(new byte[0], new byte[0], true,1);
 ColumnParent column_parent = new ColumnParent("myColumnFamily");
 List<ColumnOrSuperColumn> listCoList = javaClient.client.get_slice("key1"
.getBytes(), column_parent, predicate, ConsistencyLevel.ONE);
 String colName = null;
 for (ColumnOrSuperColumn csc : listCoList) {

colName= new String(csc.column.getName());
}


    here colName is not coming as the latest one.
    the one which is before latest is coming always as the latest one

    any solution  ?
    help me

Thanks,
Bujji

Mime
View raw message