Setup the mostly-non-schema table options, like caching settings
(self, row)
| 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): |
no test coverage detected