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

Method _build_table_options

cassandra/metadata.py:2308–2321  ·  view source on GitHub ↗

Setup the mostly-non-schema table options, like caching settings

(self, row)

Source from the content-addressed store, hash-verified

2306 return table_meta
2307
2308 def _build_table_options(self, row):
2309 """ Setup the mostly-non-schema table options, like caching settings """
2310 options = dict((o, row.get(o)) for o in self.recognized_table_options if o in row)
2311
2312 # the option name when creating tables is "dclocal_read_repair_chance",
2313 # but the column name in system.schema_columnfamilies is
2314 # "local_read_repair_chance". We'll store this as dclocal_read_repair_chance,
2315 # since that's probably what users are expecting (and we need it for the
2316 # CREATE TABLE statement anyway).
2317 if "local_read_repair_chance" in options:
2318 val = options.pop("local_read_repair_chance")
2319 options["dclocal_read_repair_chance"] = val
2320
2321 return options
2322
2323 @classmethod
2324 def _build_column_metadata(cls, table_metadata, row):

Callers 1

_build_table_metadataMethod · 0.95

Calls 2

getMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected