Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::HashTableTest Class Reference
Inheritance diagram for impala::HashTableTest:
Collaboration diagram for impala::HashTableTest:

Classes

struct  ProbeTestData
 

Public Member Functions

 HashTableTest ()
 

Protected Member Functions

virtual void SetUp ()
 
virtual void TearDown ()
 
TupleRowCreateTupleRow (int32_t val)
 
void ResizeTable (HashTable *table, int64_t new_size, HashTableCtx *ht_ctx)
 
void FullScan (HashTable *table, HashTableCtx *ht_ctx, int min, int max, bool all_unique, TupleRow **results, TupleRow **expected)
 
void ValidateMatch (TupleRow *probe_row, TupleRow *build_row)
 
void ProbeTest (HashTable *table, HashTableCtx *ht_ctx, ProbeTestData *data, int num_data, bool scan)
 
void SetupTest (bool quadratic, int table_size)
 
void BasicTest (bool quadratic, int table_size)
 
void ScanTest (bool quadratic, int initial_size, int rows_to_insert, int additional_rows)
 
void GrowTableTest (bool quadratic)
 
void InsertFullTest (bool quadratic, int table_size)
 

Protected Attributes

ObjectPool pool_
 
MemTracker tracker_
 
MemPool mem_pool_
 
vector< ExprContext * > build_expr_ctxs_
 
vector< ExprContext * > probe_expr_ctxs_
 

Detailed Description

Definition at line 38 of file hash-table-test.cc.

Constructor & Destructor Documentation

impala::HashTableTest::HashTableTest ( )
inline

Definition at line 40 of file hash-table-test.cc.

Member Function Documentation

TupleRow* impala::HashTableTest::CreateTupleRow ( int32_t  val)
inlineprotected
void impala::HashTableTest::FullScan ( HashTable table,
HashTableCtx ht_ctx,
int  min,
int  max,
bool  all_unique,
TupleRow **  results,
TupleRow **  expected 
)
inlineprotected
void impala::HashTableTest::ResizeTable ( HashTable table,
int64_t  new_size,
HashTableCtx ht_ctx 
)
inlineprotected

Definition at line 87 of file hash-table-test.cc.

References impala::HashTable::ResizeBuckets().

Referenced by BasicTest(), and ScanTest().

virtual void impala::HashTableTest::SetUp ( )
inlineprotectedvirtual
void impala::HashTableTest::SetupTest ( bool  quadratic,
int  table_size 
)
inlineprotected
virtual void impala::HashTableTest::TearDown ( )
inlineprotectedvirtual

Definition at line 71 of file hash-table-test.cc.

References build_expr_ctxs_, impala::Expr::Close(), and probe_expr_ctxs_.

void impala::HashTableTest::ValidateMatch ( TupleRow probe_row,
TupleRow build_row 
)
inlineprotected

Definition at line 112 of file hash-table-test.cc.

References build_expr_ctxs_, and probe_expr_ctxs_.

Referenced by GrowTableTest(), and ProbeTest().

Member Data Documentation

vector<ExprContext*> impala::HashTableTest::build_expr_ctxs_
protected
MemPool impala::HashTableTest::mem_pool_
protected
ObjectPool impala::HashTableTest::pool_
protected

Definition at line 43 of file hash-table-test.cc.

Referenced by SetUp().

vector<ExprContext*> impala::HashTableTest::probe_expr_ctxs_
protected
MemTracker impala::HashTableTest::tracker_
protected

Definition at line 44 of file hash-table-test.cc.

Referenced by SetUp().


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