Kudu C++ client API
Loading...
Searching...
No Matches
KuduScanBatch::const_iterator Class Reference

Iterator to work with immutable KuduScanBatch instances. More...

#include <scan_batch.h>

Inheritance diagram for KuduScanBatch::const_iterator:

Public Member Functions

KuduScanBatch::RowPtr operator* () const
KuduScanBatch::RowPtr operator-> () const
const_iteratoroperator++ ()
const_iterator operator++ (int)
bool operator== (const const_iterator &other) const
bool operator!= (const const_iterator &other) const

Detailed Description

Iterator to work with immutable KuduScanBatch instances.

Member Function Documentation

◆ operator!=()

bool kudu::client::KuduScanBatch::const_iterator::operator!= ( const const_iterator & other) const
inline

An operator to check whether two iterators are 'not equal'.

Parameters
[in]otherThe iterator to compare with.
Returns
true iff the other iterator points to a different row in the same batch, or to a row belonging to a different batch altogether.

◆ operator*()

KuduScanBatch::RowPtr kudu::client::KuduScanBatch::const_iterator::operator* ( ) const
inline
Returns
The row in the batch the iterator is pointing at.

◆ operator++() [1/2]

const_iterator & kudu::client::KuduScanBatch::const_iterator::operator++ ( )
inline

Prefix increment operator: advances the iterator to the next position.

Returns
The reference to the iterator, pointing to the next position.

◆ operator++() [2/2]

const_iterator kudu::client::KuduScanBatch::const_iterator::operator++ ( int )
inline

Postfix increment operator: advances the iterator to the next position.

Returns
A copy of the iterator pointing to the pre-increment position.

◆ operator->()

KuduScanBatch::RowPtr kudu::client::KuduScanBatch::const_iterator::operator-> ( ) const
inline
Note
Since iterator does not keep current KuduScanBatch::RowPtr, we cannot return pointer to it. Instead we return KuduScanBatch::RowPtr, which implements pointer operator ->
Returns
The row in the batch the iterator is pointing at.

◆ operator==()

bool kudu::client::KuduScanBatch::const_iterator::operator== ( const const_iterator & other) const
inline

An operator to check whether two iterators are 'equal'.

Parameters
[in]otherThe iterator to compare with.
Returns
true iff the other iterator points to the same row of the same batch.

The documentation for this class was generated from the following file: