开发者

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

开发者 https://www.devze.com 2022-12-24 07:30 出处:网络
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 -

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

精彩评论

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