Fetches query results up to max_rows given a handle and sql statement. Caller must ensure that query has passed PENDING state before calling fetch. If max_rows < 0, all rows are fetched. If max_rows > 0 but the number of rows returned is less than max_rows, all the rows have been fetched
(self, sql_stmt, operation_handle, max_rows=-1, discard_results=False)
| 282 | |
| 283 | @abc.abstractmethod |
| 284 | def fetch(self, sql_stmt, operation_handle, max_rows=-1, discard_results=False): |
| 285 | """Fetches query results up to max_rows given a handle and sql statement. |
| 286 | Caller must ensure that query has passed PENDING state before calling fetch. |
| 287 | If max_rows < 0, all rows are fetched. If max_rows > 0 but the number of |
| 288 | rows returned is less than max_rows, all the rows have been fetched. |
| 289 | Return None if discard_results is True. |
| 290 | TODO: 'sql_stmt' can be obtained from 'operation_handle'.""" |
| 291 | pass |
| 292 | |
| 293 | @abc.abstractmethod |
| 294 | def get_runtime_profile(self, operation_handle, |
no outgoing calls