Does pycassa's ColumnFamily.get_indexed_slices return a generator?
Question
The documentation at [1] says that ColumnFamily.get_range()
returns a python generator over (key, {column_name: column_value})
. I wonder if ColumnFamily.get_indexed_slices()
also returns a generator.
The documentation is a bit unclear about that.
Solution
Okay I realized it is a generator.
>>> col_fam.get_indexed_slices(clause)
<generator object get_indexed_slices at 0x1fdcf00>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow