Execute Query Iterator Async

Bases: object

Collects responses from ExecuteQuery requests and parses them into QueryResultRows.

It is not thread-safe. It should not be used by multiple asyncio Tasks.

  • Parameters

    • client– bigtable client

    • instance_id– id of the instance on which the query is executed

    • request_body– dict representing the body of the ExecuteQueryRequest

    • attempt_timeout– the time budget for an individual network request, in seconds. If it takes longer than this time to complete, the request will be cancelled with a DeadlineExceeded exception, and a retry will be attempted.

    • operation_timeout– the time budget for the entire operation, in seconds. Failed requests will be retried within the budget

    • req_metadata– metadata used while sending the gRPC request

    • retryable_excs– a list of errors that will be retried if encountered.

  • Raises

    RuntimeError – if the instance is not created within an async event loop context.

property app_profile_id( : Optional[ str )

Returns the app_profile_id of the iterator.

async close()

Cancel all background tasks. Should be called all rows were processed.

property is_closed( : [bool]( https://docs.python.org/3/library/functions.html#bool )

Returns True if the iterator is closed, False otherwise.

Returns query metadata from the server or None if the iterator was explicitly closed.

property table_name( : Optional[ str )

Returns the table_name of the iterator.

Design a Mobile Site
View Site in Mobile | Classic
Share by: