Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::RowBatchList::TupleRowIterator Class Reference

A simple iterator used to scan over all the rows stored in the list. More...

#include <row-batch-list.h>

Collaboration diagram for impala::RowBatchList::TupleRowIterator:

Public Member Functions

 TupleRowIterator ()
 Dummy constructor. More...
 
bool AtEnd ()
 Returns true if this iterator is at the end, i.e. GetRow() cannot be called. More...
 
TupleRowGetRow ()
 
void Next ()
 Increments the iterator. No-op if the iterator is at the end. More...
 

Private Member Functions

 TupleRowIterator (RowBatchList *list)
 

Private Attributes

RowBatchListlist_
 
std::vector< RowBatch * >::iterator batch_it_
 
int64_t row_idx_
 

Friends

class RowBatchList
 

Detailed Description

A simple iterator used to scan over all the rows stored in the list.

Definition at line 39 of file row-batch-list.h.

Constructor & Destructor Documentation

impala::RowBatchList::TupleRowIterator::TupleRowIterator ( )
inline

Dummy constructor.

Definition at line 42 of file row-batch-list.h.

impala::RowBatchList::TupleRowIterator::TupleRowIterator ( RowBatchList list)
inlineprivate

Definition at line 68 of file row-batch-list.h.

Member Function Documentation

bool impala::RowBatchList::TupleRowIterator::AtEnd ( )
inline
TupleRow* impala::RowBatchList::TupleRowIterator::GetRow ( )
inline

Returns the current row. Callers must check the iterator is not AtEnd() before calling GetRow().

Definition at line 51 of file row-batch-list.h.

References AtEnd(), and row_idx_.

Referenced by impala::RowBatchList::DebugString(), impala::RowBatchListTest::FullScan(), and impala::CrossJoinNode::ProcessLeftChildBatch().

void impala::RowBatchList::TupleRowIterator::Next ( )
inline

Increments the iterator. No-op if the iterator is at the end.

Definition at line 57 of file row-batch-list.h.

References batch_it_, list_, impala::RowBatchList::row_batches_, and row_idx_.

Referenced by impala::RowBatchList::DebugString(), impala::RowBatchListTest::FullScan(), and impala::CrossJoinNode::ProcessLeftChildBatch().

Friends And Related Function Documentation

friend class RowBatchList
friend

Definition at line 66 of file row-batch-list.h.

Member Data Documentation

std::vector<RowBatch*>::iterator impala::RowBatchList::TupleRowIterator::batch_it_
private

Definition at line 75 of file row-batch-list.h.

Referenced by AtEnd(), and Next().

RowBatchList* impala::RowBatchList::TupleRowIterator::list_
private

Definition at line 74 of file row-batch-list.h.

Referenced by AtEnd(), and Next().

int64_t impala::RowBatchList::TupleRowIterator::row_idx_
private

Definition at line 76 of file row-batch-list.h.

Referenced by GetRow(), and Next().


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