Class RowStreamIterator (2.21.0)

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
NameDescription
source Source

Operators

operator*()

Returns
TypeDescription
reference

operator->()

Returns
TypeDescription
pointer

operator*() const

Returns
TypeDescription
const_reference

operator->() const

Returns
TypeDescription
const_pointer

operator++()

Returns
TypeDescription
RowStreamIterator &

operator++(int)

Parameter
NameDescription
int
Returns
TypeDescription
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.