cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Yen <>
Subject get_slice needs offset
Date Wed, 06 Jul 2011 08:04:56 GMT

It seems it was implemented before. However, due to Cassandra-286, it was
removed. I was wondering if it is possible to put it back. Because computing
the offset on the client side should be less efficient than do it on the
server side.

I am thinking this might be possible to achieve by tweaking both the
CassandraServer.multigetSliceInternal and CassandraServer.getSlice. Let us
assume there is one extra attribute called "offset" inside SliceRange
object. When the "offset" attribute exists in the SliceRange, the read
command should be create like "new SliceFromReadCommand(keyspace, key,
column_parent, range.start, range.finish, range.reversed,
range.count+range.offset)". And then, the only thing left to do is to make
the  CassandraServer.getSlice be aware of the "offset", based on offset it
should be able to return the right fragment of data.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message