Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <row-batch-list.h>
Classes | |
class | TupleRowIterator |
A simple iterator used to scan over all the rows stored in the list. More... | |
Public Member Functions | |
RowBatchList () | |
void | AddRowBatch (RowBatch *row_batch) |
void | Reset () |
Resets the list. More... | |
std::string | DebugString (const RowDescriptor &desc) |
Outputs a debug string containing the contents of the list. More... | |
int64_t | total_num_rows () |
Returns the total number of rows in all row batches. More... | |
TupleRowIterator | Iterator () |
Returns a new iterator over all the tuple rows. More... | |
Private Attributes | |
std::vector< RowBatch * > | row_batches_ |
int64_t | total_num_rows_ |
Total number of rows. More... | |
Friends | |
class | TupleRowIterator |
A simple list structure for RowBatches that provides an interface for iterating over the TupleRows.
Definition at line 34 of file row-batch-list.h.
|
inline |
Definition at line 36 of file row-batch-list.h.
|
inline |
Add the 'row_batch' to the list. The RowBatch* and all of its resources are owned by the caller.
Definition at line 81 of file row-batch-list.h.
References impala::RowBatch::num_rows(), row_batches_, and total_num_rows_.
Referenced by impala::CrossJoinNode::ConstructBuildSide(), and impala::TEST_F().
|
inline |
Outputs a debug string containing the contents of the list.
Definition at line 94 of file row-batch-list.h.
References impala::RowBatchList::TupleRowIterator::AtEnd(), impala::RowBatchList::TupleRowIterator::GetRow(), Iterator(), impala::RowBatchList::TupleRowIterator::Next(), impala::PrintRow(), and total_num_rows_.
Referenced by impala::CrossJoinNode::BuildListDebugString().
|
inline |
Returns a new iterator over all the tuple rows.
Definition at line 111 of file row-batch-list.h.
References TupleRowIterator.
Referenced by DebugString(), impala::RowBatchListTest::FullScan(), impala::CrossJoinNode::InitGetNext(), impala::CrossJoinNode::ProcessLeftChildBatch(), and impala::TEST_F().
|
inline |
Resets the list.
Definition at line 88 of file row-batch-list.h.
References row_batches_, and total_num_rows_.
Referenced by impala::CrossJoinNode::Close(), and impala::CrossJoinNode::Reset().
|
inline |
Returns the total number of rows in all row batches.
Definition at line 108 of file row-batch-list.h.
References total_num_rows_.
Referenced by impala::CrossJoinNode::ConstructBuildSide(), and impala::TEST_F().
|
friend |
Definition at line 116 of file row-batch-list.h.
Referenced by Iterator().
|
private |
Definition at line 118 of file row-batch-list.h.
Referenced by AddRowBatch(), impala::RowBatchList::TupleRowIterator::AtEnd(), impala::RowBatchList::TupleRowIterator::Next(), and Reset().
|
private |
Total number of rows.
Definition at line 121 of file row-batch-list.h.
Referenced by AddRowBatch(), DebugString(), Reset(), and total_num_rows().