code
stringlengths
3
6.57k
protect_name(self.keyspace)
protect_name(self.name)
join([types.strip_frozen(arg_type)
protect_name(self.state_func)
types.strip_frozen(self.state_type)
s(%(type_list)
locals()
join((sep, 'FINALFUNC ', protect_name(self.final_func)
join((sep, 'INITCOND ', self.initial_condition)
format(sep)
export_as_string(self)
self.as_cql_query(formatted=True)
signature(self)
SignatureDescriptor.format_signature(self.name, self.argument_types)
Function(object)
values (convenience function to avoid handling nulls explicitly if the result will just be null)
argument_types (frozen<list<>>)
as_cql_query(self, formatted=False)
protect_name(self.keyspace)
protect_name(self.name)
join(["%s %s" % (protect_name(n)
types.strip_frozen(t)
zip(self.argument_names, self.argument_types)
format(sep)
format(sep)
s(%(arg_list)
locals()
export_as_string(self)
self.as_cql_query(formatted=True)
signature(self)
SignatureDescriptor.format_signature(self.name, self.argument_types)
TableMetadata(object)
primary_key(self)
is_cql_compatible(self)
getattr(self, 'comparator', None)
len(self.columns)
len(self.primary_key)
len(self.clustering_key)
__init__(self, keyspace_name, name, partition_key=None, clustering_key=None, columns=None, triggers=None, options=None, virtual=False)
OrderedDict()
OrderedDict()
export_as_string(self)
traceback.format_exception(*self._exc_info)
n(this should not be used to reproduce this schema)
self._all_as_cql()
CQL (was created via legacy API)
n(this should not be used to reproduce this schema)
self._all_as_cql()
format(ks=self.keyspace_name, tab=self.name, cql=self._all_as_cql()
self._all_as_cql()
_all_as_cql(self)
self.as_cql_query(formatted=True)
self.indexes.values()
index.as_cql_query()
self.triggers.values()
trigger_meta.as_cql_query()
self.views.values()
view_meta.as_cql_query(formatted=True)
six.viewkeys(registry)
ext.after_table_cql(self, k, self.extensions[k])
as_cql_query(self, formatted=False)
protect_name(self.keyspace_name)
protect_name(self.name)
self.columns.values()
columns.append("%s %s%s" % (protect_name(col.name)
len(self.partition_key)
column_join.join("%s%s" % (padding, col)
len(self.partition_key)
KEY (" % (column_join, padding)
len(self.partition_key)
join(protect_name(col.name)
protect_name(self.partition_key[0].name)
join(protect_name(col.name)
self._property_string(formatted, self.clustering_key, self.options, self.is_compact_storage)
_property_string(cls, formatted, clustering_key, options_map, is_compact_storage=False)
properties.append("COMPACT STORAGE")
inner.append("%s %s" % (protect_name(col.name)
join(inner)
properties.append(cluster_str)
properties.extend(cls._make_option_strings(options_map)
join_str.join(properties)
_make_option_strings(cls, options_map)
dict(options_map.items()
json.loads(options_copy.pop('compaction_strategy_options', '{}')
options_copy.pop("compaction_strategy_class", None)
actual_options.setdefault("class", value)
actual_options.items()
ret.append('compaction = {%s}' % ', '.join(compaction_option_strings)
cls.compaction_options.keys()
options_copy.pop(system_table_name, None)
options_copy.pop('compaction_strategy_option', None)
options_copy.get('compression')
json.loads(options_copy.pop('compression_parameters', '{}')
params.items()
ret.append('compression = {%s}' % ', '.join(param_strings)
options_copy.items()
ret.append("%s = %s" % (name, protect_value(value)
list(sorted(ret)
TableExtensionInterface(object)
after_table_cql(cls, ext_key, ext_blob)