aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/predicate/simple_index_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2016-11-04 13:28:02 +0100
committerGeir Storli <geirst@yahoo-inc.com>2016-11-04 13:28:02 +0100
commit128bba84583fc1249ea30bf4965ac4bc1f881df6 (patch)
treee577d9320b9372f7980befd9bab76e8b1c1c8f0d /searchlib/src/tests/predicate/simple_index_test.cpp
parenta332037c8f2fa3b51e1df3277eb3c4eb7de2cfa6 (diff)
Move datastore code from search::btree -> search::datastore.
Diffstat (limited to 'searchlib/src/tests/predicate/simple_index_test.cpp')
-rw-r--r--searchlib/src/tests/predicate/simple_index_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/searchlib/src/tests/predicate/simple_index_test.cpp b/searchlib/src/tests/predicate/simple_index_test.cpp
index 59e4fc53c05..f8a1d3f1366 100644
--- a/searchlib/src/tests/predicate/simple_index_test.cpp
+++ b/searchlib/src/tests/predicate/simple_index_test.cpp
@@ -91,7 +91,7 @@ struct Fixture {
SimpleIndex<MyData>::VectorIterator getVectorPostingList(uint64_t k) {
return *_index.getVectorPostingList(k);
}
- SimpleIndex<MyData>::BTreeIterator getBTreePostingList(btree::EntryRef ref) {
+ SimpleIndex<MyData>::BTreeIterator getBTreePostingList(datastore::EntryRef ref) {
return _index.getBTreePostingList(ref);
}
void commit() {
@@ -105,7 +105,7 @@ TEST_F("require that SimpleIndex can insert and remove a value.", Fixture) {
f.commit();
auto it = f.lookup(key);
ASSERT_TRUE(it.valid());
- btree::EntryRef ref = it.getData();
+ datastore::EntryRef ref = it.getData();
auto posting_it = f.getBTreePostingList(ref);
ASSERT_TRUE(posting_it.valid());
EXPECT_EQUAL(doc_id, posting_it.getKey());
@@ -130,7 +130,7 @@ TEST_F("require that SimpleIndex can insert and remove many values.", Fixture) {
f.commit();
auto it = f.lookup(key);
ASSERT_TRUE(it.valid());
- btree::EntryRef ref = it.getData();
+ datastore::EntryRef ref = it.getData();
auto posting_it = f.getBTreePostingList(ref);
for (size_t id = 1; id < 100; ++id) {
ASSERT_TRUE(posting_it.valid());
@@ -174,7 +174,7 @@ TEST_FF("require that SimpleIndex can be serialized and deserialized.", Fixture,
auto it = f2.lookup(key);
ASSERT_TRUE(it.valid());
- btree::EntryRef ref = it.getData();
+ datastore::EntryRef ref = it.getData();
auto posting_it = f1.getBTreePostingList(ref);
for (uint32_t id = 1; id < 100; ++id) {
ASSERT_TRUE(posting_it.valid());
@@ -195,7 +195,7 @@ TEST_F("require that SimpleIndex can update by inserting the same key twice.", F
auto it = f.lookup(key);
ASSERT_TRUE(it.valid());
- btree::EntryRef ref = it.getData();
+ datastore::EntryRef ref = it.getData();
auto posting_it = f.getBTreePostingList(ref);
ASSERT_TRUE(posting_it.valid());
EXPECT_EQUAL(doc_id, posting_it.getKey());