(self, load_balancing_policy=_NOT_SET, retry_policy=None,
consistency_level=_NOT_SET, serial_consistency_level=None,
request_timeout=10.0, row_factory=named_tuple_factory, speculative_execution_policy=None,
continuous_paging_options=None)
| 407 | _consistency_level_explicit = False |
| 408 | |
| 409 | def __init__(self, load_balancing_policy=_NOT_SET, retry_policy=None, |
| 410 | consistency_level=_NOT_SET, serial_consistency_level=None, |
| 411 | request_timeout=10.0, row_factory=named_tuple_factory, speculative_execution_policy=None, |
| 412 | continuous_paging_options=None): |
| 413 | |
| 414 | if load_balancing_policy is _NOT_SET: |
| 415 | self._load_balancing_policy_explicit = False |
| 416 | self.load_balancing_policy = default_lbp_factory() |
| 417 | else: |
| 418 | self._load_balancing_policy_explicit = True |
| 419 | self.load_balancing_policy = load_balancing_policy |
| 420 | |
| 421 | if consistency_level is _NOT_SET: |
| 422 | self._consistency_level_explicit = False |
| 423 | self.consistency_level = ConsistencyLevel.LOCAL_ONE |
| 424 | else: |
| 425 | self._consistency_level_explicit = True |
| 426 | self.consistency_level = consistency_level |
| 427 | |
| 428 | self.retry_policy = retry_policy or RetryPolicy() |
| 429 | |
| 430 | if (serial_consistency_level is not None and |
| 431 | not ConsistencyLevel.is_serial(serial_consistency_level)): |
| 432 | raise ValueError("serial_consistency_level must be either " |
| 433 | "ConsistencyLevel.SERIAL " |
| 434 | "or ConsistencyLevel.LOCAL_SERIAL.") |
| 435 | self.serial_consistency_level = serial_consistency_level |
| 436 | |
| 437 | self.request_timeout = request_timeout |
| 438 | self.row_factory = row_factory |
| 439 | self.speculative_execution_policy = speculative_execution_policy or NoSpeculativeExecutionPolicy() |
| 440 | self.continuous_paging_options = continuous_paging_options |
| 441 | |
| 442 | |
| 443 | class GraphExecutionProfile(ExecutionProfile): |
nothing calls this directly
no test coverage detected