Prevents further modification to the sharding policy. Any values that have not been set when freeze is called are set to defaults. If the ShardingPolicy is already frozen, this is a NoOp.
(self)
| 52 | _DEFAULT_SHARD_DIMENSION) |
| 53 | |
| 54 | def freeze(self): |
| 55 | """Prevents further modification to the sharding policy. |
| 56 | |
| 57 | Any values that have not been set when freeze is called are set to |
| 58 | defaults. If the ShardingPolicy is already frozen, this is a NoOp. |
| 59 | """ |
| 60 | if not self._frozen: |
| 61 | self._fill_default_values() |
| 62 | self._frozen = True |
| 63 | |
| 64 | @property |
| 65 | def number_of_shards(self): |