16 #ifndef IMPALA_EXEC_ROW_BATCH_LIST_H
17 #define IMPALA_EXEC_ROW_BATCH_LIST_H
53 return (*batch_it_)->GetRow(
row_idx_);
59 if (++
row_idx_ == (*batch_it_)->num_rows()) {
82 if (row_batch->
num_rows() == 0)
return;
95 std::stringstream out;
96 out <<
"RowBatchList(";
TupleRowIterator Iterator()
Returns a new iterator over all the tuple rows.
std::vector< RowBatch * > row_batches_
TupleRowIterator()
Dummy constructor.
friend class TupleRowIterator
A simple iterator used to scan over all the rows stored in the list.
int64_t total_num_rows_
Total number of rows.
void AddRowBatch(RowBatch *row_batch)
void Reset()
Resets the list.
bool AtEnd()
Returns true if this iterator is at the end, i.e. GetRow() cannot be called.
TupleRowIterator(RowBatchList *list)
std::string DebugString(const RowDescriptor &desc)
Outputs a debug string containing the contents of the list.
std::vector< RowBatch * >::iterator batch_it_
string PrintRow(TupleRow *row, const RowDescriptor &d)
void Next()
Increments the iterator. No-op if the iterator is at the end.
int64_t total_num_rows()
Returns the total number of rows in all row batches.