@@ -30,51 +30,45 @@ class TestingIndexUtil {
30
30
// Test Cases
31
31
// ===--------------------------------------------------------------------===//
32
32
33
- static void BasicTest (const IndexType index_type);
33
+ static void BasicTest (IndexType index_type);
34
34
35
- static void MultiMapInsertTest (const IndexType index_type);
35
+ static void MultiMapInsertTest (IndexType index_type);
36
36
37
- static void UniqueKeyInsertTest (const IndexType index_type);
37
+ static void UniqueKeyInsertTest (IndexType index_type);
38
38
39
- static void UniqueKeyDeleteTest (const IndexType index_type);
39
+ static void UniqueKeyDeleteTest (IndexType index_type);
40
40
41
- static void NonUniqueKeyDeleteTest (const IndexType index_type);
41
+ static void NonUniqueKeyDeleteTest (IndexType index_type);
42
42
43
- static void MultiThreadedInsertTest (const IndexType index_type);
43
+ static void MultiThreadedInsertTest (IndexType index_type);
44
44
45
- static void UniqueKeyMultiThreadedTest (const IndexType index_type);
45
+ static void UniqueKeyMultiThreadedTest (IndexType index_type);
46
46
47
- static void NonUniqueKeyMultiThreadedTest (const IndexType index_type);
47
+ static void NonUniqueKeyMultiThreadedTest (IndexType index_type);
48
48
49
- static void NonUniqueKeyMultiThreadedStressTest (const IndexType index_type);
49
+ static void NonUniqueKeyMultiThreadedStressTest (IndexType index_type);
50
50
51
- static void NonUniqueKeyMultiThreadedStressTest2 (const IndexType index_type);
51
+ static void NonUniqueKeyMultiThreadedStressTest2 (IndexType index_type);
52
52
53
53
// ===--------------------------------------------------------------------===//
54
54
// Utility Methods
55
55
// ===--------------------------------------------------------------------===//
56
56
57
- /* *
58
- * Builds an index with 4 columns, the first 2 being indexed
59
- */
60
- static index::Index * BuildIndex ( const IndexType index_type,
61
- const bool unique_keys);
57
+ // Builds an index with 4 columns, the first 2 being indexed
58
+ static std::unique_ptr< index::IndexMetadata> BuildTestIndexMetadata (
59
+ const IndexType index_type, const bool unique_keys);
60
+
61
+ static index::Index * BuildIndex (IndexType index_type, bool unique_keys);
62
62
63
63
static void DestroyIndex (index::Index *index);
64
64
65
- /* *
66
- * Insert helper function
67
- */
65
+ // Insert helper function
68
66
static void InsertHelper (index::Index *index, type::AbstractPool *pool,
69
- size_t scale_factor,
70
- UNUSED_ATTRIBUTE uint64_t thread_itr);
67
+ size_t scale_factor, uint64_t thread_itr);
71
68
72
- /* *
73
- * Delete helper function
74
- */
69
+ // Delete helper function
75
70
static void DeleteHelper (index::Index *index, type::AbstractPool *pool,
76
- size_t scale_factor,
77
- UNUSED_ATTRIBUTE uint64_t thread_itr);
71
+ size_t scale_factor, uint64_t thread_itr);
78
72
79
73
static std::shared_ptr<ItemPointer> item0;
80
74
static std::shared_ptr<ItemPointer> item1;
0 commit comments