Re: Map return for multiget_slice() query

2010-01-13 Thread Joe Stump
I ran into this problem in Python because dict's aren't ordered in Python. Not sure if that applies here. --Joe On Jan 12, 2010, at 2:22 AM, Richard Grossman wrote: Hi I've a simple CF like this : ColumnFamily CompareWith=BytesType Name=channelShow

Map return for multiget_slice() query

2010-01-12 Thread Richard Grossman
Hi I've a simple CF like this : ColumnFamily CompareWith=BytesType Name=channelShow FlushPeriodInMinutes=150/ When I make a query via multiget_slice() I expect to get the data back ordered by the keys list that I pass. But not the return doesn't

Re: Map return for multiget_slice() query

2010-01-12 Thread Jonathan Ellis
You'll have to sort them client-side, thrift has no concept of an order-preserving map and multiget is just a series of gets conveniently combined with no ordering guarantees (unlike get_range_slice which returns a List specifically to preserve order). -Jonathan On Tue, Jan 12, 2010 at 3:22 AM,