summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/postinglist/postinglist.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-05-04 13:42:46 +0200
committerGitHub <noreply@github.com>2020-05-04 13:42:46 +0200
commit38adff58b5f6f148c0a2d0116e53f38955eaed8d (patch)
tree5e6bba34fcef751a1df4973cffcf9fde04672a78 /searchlib/src/tests/attribute/postinglist/postinglist.cpp
parentec7cfa3b4d9d63f4f4cd1a589c21b42dc289bdee (diff)
parent12641f4383088dd087c1061739c5765393d2b129 (diff)
Merge pull request #13145 from vespa-engine/toregge/rename-btree-and-datastore-namespaces
Rename namespace search::btree to vespalib::btree.
Diffstat (limited to 'searchlib/src/tests/attribute/postinglist/postinglist.cpp')
-rw-r--r--searchlib/src/tests/attribute/postinglist/postinglist.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/searchlib/src/tests/attribute/postinglist/postinglist.cpp b/searchlib/src/tests/attribute/postinglist/postinglist.cpp
index 37d76e4a9e8..751fa72c349 100644
--- a/searchlib/src/tests/attribute/postinglist/postinglist.cpp
+++ b/searchlib/src/tests/attribute/postinglist/postinglist.cpp
@@ -96,18 +96,18 @@ private:
std::vector<RandomValue> _randomValues;
public:
- typedef datastore::DataStore<int> IntKeyStore;
- typedef btree::BTreeKeyData<uint32_t, btree::BTreeNoLeafData>
+ typedef vespalib::datastore::DataStore<int> IntKeyStore;
+ typedef vespalib::btree::BTreeKeyData<uint32_t, vespalib::btree::BTreeNoLeafData>
AttributePosting;
- typedef btree::BTreeStore<uint32_t,
- btree::BTreeNoLeafData,
- btree::NoAggregated,
+ typedef vespalib::btree::BTreeStore<uint32_t,
+ vespalib::btree::BTreeNoLeafData,
+ vespalib::btree::NoAggregated,
std::less<uint32_t>,
- btree::BTreeDefaultTraits>
+ vespalib::btree::BTreeDefaultTraits>
PostingList;
typedef PostingList::NodeAllocatorType PostingListNodeAllocator;
- typedef datastore::EntryRef PostingIdx;
- typedef datastore::EntryRef StoreIndex;
+ typedef vespalib::datastore::EntryRef PostingIdx;
+ typedef vespalib::datastore::EntryRef StoreIndex;
class IntComp {
private:
@@ -127,8 +127,8 @@ public:
}
};
- typedef btree::BTreeRoot<StoreIndex, PostingIdx,
- btree::NoAggregated,
+ typedef vespalib::btree::BTreeRoot<StoreIndex, PostingIdx,
+ vespalib::btree::NoAggregated,
const IntComp &> IntEnumTree;
typedef IntEnumTree::NodeAllocatorType IntEnumNodeAllocator;
typedef IntEnumTree Tree;
@@ -375,7 +375,7 @@ insertRandomValues(Tree &tree,
PostingIdx oldIdx = itr.getData();
PostingIdx newIdx = oldIdx;
AttributePosting newPosting(i->_docId,
- btree::BTreeNoLeafData());
+ vespalib::btree::BTreeNoLeafData());
std::vector<AttributePosting> additions;
std::vector<uint32_t> removals;
additions.push_back(newPosting);
@@ -591,7 +591,7 @@ AttributePostingListTest::doCompactEnumStore(Tree &tree,
std::vector<uint32_t> toHold;
for (uint32_t bufferId = 0; bufferId < numBuffers; ++bufferId) {
- datastore::BufferState &state = valueHandle.getBufferState(bufferId);
+ vespalib::datastore::BufferState &state = valueHandle.getBufferState(bufferId);
if (state.isActive()) {
toHold.push_back(bufferId);
// Freelists already disabled due to variable sized data