Does pycassa's ColumnFamily.get_indexed_slices return a generator?
Domanda
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.
Soluzione
Okay I realized it is a generator.
>>> col_fam.get_indexed_slices(clause)
<generator object get_indexed_slices at 0x1fdcf00>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow