@@ -38,15 +38,15 @@ namespace test {
38
38
39
39
class BloomFilterCodegenTests : public PelotonTests {
40
40
public:
41
- BloomFilterCodegenTest () {
41
+ BloomFilterCodegenTests () {
42
42
// Create test db
43
43
auto &txn_manager = concurrency::TransactionManagerFactory::GetInstance ();
44
44
auto txn = txn_manager.BeginTransaction ();
45
45
catalog::Catalog::GetInstance ()->CreateDatabase (DEFAULT_DB_NAME, txn);
46
46
txn_manager.CommitTransaction (txn);
47
47
}
48
48
49
- ~BloomFilterCodegenTest () {
49
+ ~BloomFilterCodegenTests () {
50
50
// Drop test db
51
51
auto &txn_manager = concurrency::TransactionManagerFactory::GetInstance ();
52
52
auto txn = txn_manager.BeginTransaction ();
@@ -276,11 +276,9 @@ TEST_F(BloomFilterCodegenTests, PerformanceTest) {
276
276
txn_manager.CommitTransaction (txn);
277
277
}
278
278
279
- double BloomFilterCodegenTest::ExecuteJoin (std::string query,
280
- concurrency::TransactionContext *txn,
281
- int num_iter,
282
- unsigned inner_table_cardinality,
283
- bool enable_bloom_filter) {
279
+ double BloomFilterCodegenTests::ExecuteJoin (
280
+ std::string query, concurrency::TransactionContext *txn, int num_iter,
281
+ unsigned inner_table_cardinality, bool enable_bloom_filter) {
284
282
std::unique_ptr<optimizer::AbstractOptimizer> optimizer (
285
283
new optimizer::Optimizer ());
286
284
double total_runtime = 0 ;
@@ -310,8 +308,8 @@ double BloomFilterCodegenTest::ExecuteJoin(std::string query,
310
308
*plan, executor_context->GetParams ().GetQueryParametersMap (), consumer);
311
309
312
310
// Run
313
- PelotonCodeGenTest ::ExecuteSync (*compiled_query,
314
- std::move (executor_context), consumer);
311
+ PelotonCodeGenTests ::ExecuteSync (*compiled_query,
312
+ std::move (executor_context), consumer);
315
313
316
314
LOG_INFO (" Execution Time: %0.0f ms" , stats.plan_ms );
317
315
total_runtime += stats.plan_ms ;
@@ -321,8 +319,9 @@ double BloomFilterCodegenTest::ExecuteJoin(std::string query,
321
319
322
320
// Create a table where all the columns are BIGINT and each tuple has desired
323
321
// tuple size
324
- void BloomFilterCodegenTest::CreateTable (std::string table_name, int tuple_size,
325
- concurrency::TransactionContext *txn) {
322
+ void BloomFilterCodegenTests::CreateTable (
323
+ std::string table_name, int tuple_size,
324
+ concurrency::TransactionContext *txn) {
326
325
int curr_size = 0 ;
327
326
size_t bigint_size = type::Type::GetTypeSize (type::TypeId::BIGINT);
328
327
std::vector<catalog::Column> cols;
@@ -339,9 +338,9 @@ void BloomFilterCodegenTest::CreateTable(std::string table_name, int tuple_size,
339
338
}
340
339
341
340
// Insert a tuple to specific table
342
- void BloomFilterCodegenTest ::InsertTuple (const std::vector< int > &vals,
343
- storage::DataTable *table,
344
- concurrency::TransactionContext *txn) {
341
+ void BloomFilterCodegenTests ::InsertTuple (
342
+ const std::vector< int > &vals, storage::DataTable *table,
343
+ concurrency::TransactionContext *txn) {
345
344
auto &txn_manager = concurrency::TransactionManagerFactory::GetInstance ();
346
345
storage::Tuple tuple{table->GetSchema (), true };
347
346
for (unsigned i = 0 ; i < vals.size (); i++) {
0 commit comments