Class PartialRowsData (2.49.0)

PartialRowsData(
    *args: Any, generator: Generator[Row, Any, Any] | None = None, **kwargs: Any
)

Convenience wrapper for consuming a ReadRows streaming response.

This class will be returned by the read_rows method, and should not be constructed manually.

Parameters

Name Description
read_method client._table_data_client.read_rows

ReadRows method.

generator :class:Iterable[Row]

The Row iterator from Table.read_rows.

Methods

__iter__

__iter__()

Consume the Row s from the stream. Convert them to PartialRowData and yield each to the reader.

cancel

cancel()

Cancels the iterator, closing the stream.

consume_all

consume_all(max_loops=None)

Consume the streamed responses until there are no more.

Parameter
Name Description
max_loops int

(Deprecated). Maximum number of times to try to consume an additional ReadRowsResponse. This parameter is deprecated and is only kept for backwards compatibility.