def cython_protocol_handler(colparser):
 from cassandra.row_parser import make_recv_results_rows
 class FastResultMessage(ResultMessage, ):
  '\n        Cython version of Result Message that has a faster implementation of\n        recv_results_row.\n        '
  code_to_type = dict(((v, k) for (k, v) in ResultMessage.type_codes.items()))
  recv_results_rows = classmethod(make_recv_results_rows(colparser))
 class CythonProtocolHandler(_ProtocolHandler, ):
  '\n        Use FastResultMessage to decode query result message messages.\n        '
  my_opcodes = _ProtocolHandler.message_types_by_opcode.copy()
  my_opcodes[FastResultMessage.opcode] = FastResultMessage
  message_types_by_opcode = my_opcodes
  col_parser = colparser
 return CythonProtocolHandler

def cython_protocol_handler ( colparser ) : from cassandra . row_parser import make_recv_results_rows class FastResultMessage ( ResultMessage , ) : code_to_type = dict ( ( ( v , k ) for ( k , v ) in ResultMessage . type_codes . items ( ) ) ) recv_results_rows = classmethod ( make_recv_results_rows ( colparser ) ) class CythonProtocolHandler ( _ProtocolHandler , ) : my_opcodes = _ProtocolHandler . message_types_by_opcode . copy ( ) my_opcodes [ FastResultMessage . opcode ] = FastResultMessage message_types_by_opcode = my_opcodes col_parser = colparser return CythonProtocolHandler
given a column parser to deserialize resultmessages .