Class ResultSourceInterface (2.43.0-rc)

Defines the interface for RowStream implementations.

The RowStream class represents a stream of Rows returned from bigtable::Table::ReadRows(). There are different implementations depending the the RPC. Applications can also mock this class when testing their code and mocking the bigtable::Table behavior.

Functions

NextRow()

Returns the next row in the stream.

Returns
Type Description
StatusOr< bigtable::QueryRow >

if the stream is interrupted due to a failure the StatusOr<bigtable::QueryRow> contains the error. The function returns a successful StatusOr<> with a bigtable::QueryRow with an empty row_key() to indicate end-of-stream.

Metadata()

Returns metadata about the result set.

Returns
Type Description
absl::optional< google::bigtable::v2::ResultSetMetadata >