MCPcopy Create free account
hub / github.com/apache/impala / TearDown

Method TearDown

be/src/exec/hash-table-test.cc:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 virtual void TearDown() {
102 ScalarExprEvaluator::Close(build_expr_evals_, nullptr);
103 ScalarExprEvaluator::Close(probe_expr_evals_, nullptr);
104 ScalarExpr::Close(build_exprs_);
105 ScalarExpr::Close(probe_exprs_);
106
107 for (HashTable* hash_table : hash_tables_) hash_table->Close();
108 hash_tables_.clear();
109
110 for (BufferPool::ClientHandle* client : clients_) {
111 test_env_->exec_env()->buffer_pool()->DeregisterClient(client);
112 }
113 clients_.clear();
114
115 runtime_state_ = nullptr;
116 test_env_.reset();
117 mem_pool_.FreeAll();
118 pool_.Clear();
119 }
120
121 /// Initialize test_env_ and runtime_state_ with the given page size and capacity
122 /// for the given number of pages. If test_env_ was already created, then re-creates it.

Callers

nothing calls this directly

Calls 8

DeregisterClientMethod · 0.80
exec_envMethod · 0.80
clearMethod · 0.65
resetMethod · 0.65
CloseMethod · 0.45
buffer_poolMethod · 0.45
FreeAllMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected