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
std::input_iterator_tag
Iterator type aliases
value_type
StatusOr< Row >
Iterator type aliases
difference_type
std::ptrdiff_t
Iterator type aliases
pointer
value_type *
Iterator type aliases
reference
value_type &
Iterator type aliases
const_pointer
value_type const *
Iterator type aliases
const_reference
value_type const &
Iterator type aliases
Source
std::function< StatusOr< Row >()>
Returning an empty Row
indicates that there are no more rows to be returned.