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
精彩评论