MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / recv

Method recv

cassandra/protocol.py:722–734  ·  view source on GitHub ↗
(self, f, protocol_version, user_type_map, result_metadata, column_encryption_policy)

Source from the content-addressed store, hash-verified

720 self.kind = kind
721
722 def recv(self, f, protocol_version, user_type_map, result_metadata, column_encryption_policy):
723 if self.kind == RESULT_KIND_VOID:
724 return
725 elif self.kind == RESULT_KIND_ROWS:
726 self.recv_results_rows(f, protocol_version, user_type_map, result_metadata, column_encryption_policy)
727 elif self.kind == RESULT_KIND_SET_KEYSPACE:
728 self.new_keyspace = read_string(f)
729 elif self.kind == RESULT_KIND_PREPARED:
730 self.recv_results_prepared(f, protocol_version, user_type_map)
731 elif self.kind == RESULT_KIND_SCHEMA_CHANGE:
732 self.recv_results_schema_change(f, protocol_version)
733 else:
734 raise DriverException("Unknown RESULT kind: %d" % self.kind)
735
736 @classmethod
737 def recv_body(cls, f, protocol_version, user_type_map, result_metadata, column_encryption_policy):

Callers 5

recv_bodyMethod · 0.80
handle_readMethod · 0.80
handle_readMethod · 0.80
handle_readMethod · 0.80
handle_readMethod · 0.80

Calls 5

recv_results_rowsMethod · 0.95
recv_results_preparedMethod · 0.95
DriverExceptionClass · 0.90
read_stringFunction · 0.85

Tested by

no test coverage detected