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

Method _build_function

cassandra/metadata.py:2124–2133  ·  view source on GitHub ↗
(cls, function_row)

Source from the content-addressed store, hash-verified

2122
2123 @classmethod
2124 def _build_function(cls, function_row):
2125 return_type = cls._schema_type_to_cql(function_row['return_type'])
2126 deterministic = function_row.get('deterministic', False)
2127 monotonic = function_row.get('monotonic', False)
2128 monotonic_on = function_row.get('monotonic_on', ())
2129 return Function(function_row['keyspace_name'], function_row['function_name'],
2130 function_row[cls._function_agg_arument_type_col], function_row['argument_names'],
2131 return_type, function_row['language'], function_row['body'],
2132 function_row['called_on_null_input'],
2133 deterministic, monotonic, monotonic_on)
2134
2135 @classmethod
2136 def _build_aggregate(cls, aggregate_row):

Callers 1

get_all_keyspacesMethod · 0.95

Calls 3

FunctionClass · 0.85
_schema_type_to_cqlMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected