Class RowStreamIterator (2.34.0-rc)

A RowStreamIterator is an Input Iterator (see below) that returns a sequence of StatusOr<Row> objects.

As an Input Iterator, the sequence may only be consumed once. Default constructing a RowStreamIterator creates an instance that represents "end".

Constructors

RowStreamIterator()

Default constructs an "end" iterator.

RowStreamIterator(Source)

Constructs a RowStreamIterator that will consume rows from the given source, which must not be nullptr.

Parameter
Name Description
source Source

Operators

operator*()

Returns
Type Description
reference

operator->()

Returns
Type Description
pointer

operator*() const

Returns
Type Description
const_reference

operator->() const

Returns
Type Description
const_pointer

operator++()

Returns
Type Description
RowStreamIterator &

operator++(int)

Parameter
Name Description
int
Returns
Type Description
RowStreamIterator

Type Aliases

iterator_category

Alias Of: std::input_iterator_tag

Iterator type aliases

value_type

Alias Of: StatusOr< Row >

Iterator type aliases

difference_type

Alias Of: std::ptrdiff_t

Iterator type aliases

pointer

Alias Of: value_type *

Iterator type aliases

reference

Alias Of: value_type &

Iterator type aliases

const_pointer

Alias Of: value_type const *

Iterator type aliases

const_reference

Alias Of: value_type const &

Iterator type aliases

Source

Alias Of: std::function< StatusOr< Row >()>

A function that returns a sequence of StatusOr<Row> objects.

Returning an empty Row indicates that there are no more rows to be returned.