note about row_factory in protocol handler section

This commit is contained in:
Adam Holmberg
2015-09-14 13:17:19 -05:00
parent 09d68357db
commit 5b6456937b

View File

@@ -38,7 +38,9 @@ and ``NumpyProtocolHandler``. They can be used as follows:
.. code:: python
from cassandra.protocol import NumpyProtocolHandler, LazyProtocolHandler
from cassandra.query import tuple_factory
s.client_protocol_handler = LazyProtocolHandler # for a result iterator
s.row_factory = tuple_factory #required for Numpy results
s.client_protocol_handler = NumpyProtocolHandler # for a dict of NumPy arrays as result
These protocol handlers comprise different parsers, and return results as described below: