Initialize test_env_ and runtime_state_ with the given page size and capacity for the given number of pages. If test_env_ was already created, then re-creates it.
| 146 | /// Initialize test_env_ and runtime_state_ with the given page size and capacity |
| 147 | /// for the given number of pages. If test_env_ was already created, then re-creates it. |
| 148 | void CreateTestEnv(int64_t min_page_size = 64 * 1024, |
| 149 | int64_t buffer_bytes_limit = 4L * 1024 * 1024 * 1024) { |
| 150 | test_env_.reset(new TestEnv()); |
| 151 | test_env_->SetBufferPoolArgs(min_page_size, buffer_bytes_limit); |
| 152 | Status status = test_env_->Init(); |
| 153 | CHECK(status.ok()); |
| 154 | |
| 155 | TQueryOptions query_options; |
| 156 | query_options.__set_default_spillable_buffer_size(min_page_size); |
| 157 | query_options.__set_min_spillable_buffer_size(min_page_size); |
| 158 | query_options.__set_buffer_pool_limit(buffer_bytes_limit); |
| 159 | // Also initializes runtime_state_ |
| 160 | status = test_env_->CreateQueryState(0, &query_options, &runtime_state_); |
| 161 | CHECK(status.ok()); |
| 162 | } |
| 163 | /// Construct hash table and buffer pool client. |
| 164 | /// Created objects and resources (e.g. reservations) are automatically freed |
| 165 | /// in TearDown(). |
nothing calls this directly
no test coverage detected