开发者

What is the equivalent for pycassa ColumnFamily.get_range() with Lazyboy?

I think everything is in the question. I'm looking for the Lazyboy equivalent for Pycassa ColumnFamily.get_range() -- with features like column_开发者_Python百科start, column_finish et column_count --.

Thanks.


check out this file in lazyboy:

http://github.com/digg/lazyboy/blob/master/lazyboy/iterators.py

it has a few different range methods.

E.g., line 121: def key_range(key, start="", finish="", count=100):

or you could use this when you need to apply slice predicates:

def slice_iterator(key, consistency, **predicate_args):

HTH

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜